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 <sri.hebbar@samsung.com>

Reviewers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3405
This commit is contained in:
Srivardhan Hebbar 2015-12-07 19:22:47 +09:00 committed by Jean-Philippe Andre
parent 1f31a714de
commit 05cfb0604c
1 changed files with 4 additions and 1 deletions

View File

@ -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;