From 2d3062265db4eff84e5d8d8c6856e07445af87af Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 29 Jun 2017 12:46:54 +0200 Subject: [PATCH] Added longer Base64 decode/encode test --- tests/crypto_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/crypto_test.cpp b/tests/crypto_test.cpp index 412c023..2350882 100644 --- a/tests/crypto_test.cpp +++ b/tests/crypto_test.cpp @@ -13,7 +13,9 @@ const vector> base64_string_tests = { {"foo", "Zm9v"}, {"foob", "Zm9vYg=="}, {"fooba", "Zm9vYmE="}, - {"foobar", "Zm9vYmFy"}}; + {"foobar", "Zm9vYmFy"}, + {"The itsy bitsy spider climbed up the waterspout.\r\nDown came the rain\r\nand washed the spider out.\r\nOut came the sun\r\nand dried up all the rain\r\nand the itsy bitsy spider climbed up the spout again.", + "VGhlIGl0c3kgYml0c3kgc3BpZGVyIGNsaW1iZWQgdXAgdGhlIHdhdGVyc3BvdXQuDQpEb3duIGNhbWUgdGhlIHJhaW4NCmFuZCB3YXNoZWQgdGhlIHNwaWRlciBvdXQuDQpPdXQgY2FtZSB0aGUgc3VuDQphbmQgZHJpZWQgdXAgYWxsIHRoZSByYWluDQphbmQgdGhlIGl0c3kgYml0c3kgc3BpZGVyIGNsaW1iZWQgdXAgdGhlIHNwb3V0IGFnYWluLg=="}}; const vector> md5_string_tests = { {"", "d41d8cd98f00b204e9800998ecf8427e"},