From 551ecaa72afe063e3d050dd26465ddf47d4e8cfb Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sun, 7 Jul 2013 15:59:21 +0300 Subject: [PATCH] Fixed base64 tests --- coding/coding_tests/base64_for_user_id_test.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/coding/coding_tests/base64_for_user_id_test.cpp b/coding/coding_tests/base64_for_user_id_test.cpp index c1e80d249b..20ba53aa23 100644 --- a/coding/coding_tests/base64_for_user_id_test.cpp +++ b/coding/coding_tests/base64_for_user_id_test.cpp @@ -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) {