From 05cfb0604c35ced76abedef01d6a660efa94b606 Mon Sep 17 00:00:00 2001 From: Srivardhan Hebbar Date: Mon, 7 Dec 2015 19:22:47 +0900 Subject: [PATCH] eina: Updated test case to test more scenario. Summary: The test cases which I took from wikipedia didn't have the characters '/' and '+' in the encoded string. So added test case testing these. Signed-off-by: Srivardhan Hebbar Reviewers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3405 --- src/tests/eina/eina_test_str.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tests/eina/eina_test_str.c b/src/tests/eina/eina_test_str.c index b49a9e01bf..03f254cf6d 100644 --- a/src/tests/eina/eina_test_str.c +++ b/src/tests/eina/eina_test_str.c @@ -383,7 +383,10 @@ START_TEST(str_base64_encode) { "leasure.", "bGVhc3VyZS4=", 8 }, { "easure.", "ZWFzdXJlLg==", 7 }, { "asure.", "YXN1cmUu", 6 }, - { "sure.", "c3VyZS4=", 5 } + { "sure.", "c3VyZS4=", 5 }, + /* The following 2 cases are manually generated for '-' and '/' testing*/ + { "aabc123!?", "YWFiYzEyMyE/", 9 }, + { "abc123!?$*&()'-=@~", "YWJjMTIzIT8kKiYoKSctPUB+", 18 } }; unsigned int i;