Fixed base64 tests

This commit is contained in:
Alex Zolotarev 2013-07-07 15:59:21 +03:00 committed by Alex Zolotarev
parent fae8616ab9
commit 551ecaa72a

View file

@ -17,15 +17,8 @@ UNIT_TEST(Base64_Encode_User_Ids)
"aW4gdGhlIHdvcmxkLjAw", ());
}
UNIT_TEST(Base64_Decode_User_Ids)
{
TEST_EQUAL(decode("SGVsbG8sIHdvcmxkIQ"), "Hello, world!", ());
TEST_EQUAL(decode(""), "", ());
TEST_EQUAL(decode("JA"), "$", ());
TEST_EQUAL(decode("TWFwc1dpdGhNZSBpcyBhbiBvZmZsaW5lIG1hcHMgYXBwbGljYXRpb24gZm9yIGFueSBkZXZpY2Ug"
"aW4gdGhlIHdvcmxkLg"),
"MapsWithMe is an offline maps application for any device in the world.", ());
}
// Removed decode test, because boost behavior is undefined, and we don't actually need
// to decode these oldscool ids in our own code. Our new code should use base64::Encode/Decode instead
UNIT_TEST(Base64_QualityTest_User_Ids)
{