14 CHECK_EQ (encode_base64 (
"") ==
"",
true);
15 CHECK_EQ (encode_base64 (
"f") ==
"Zg==",
true);
16 CHECK_EQ (encode_base64 (
"fo") ==
"Zm8=",
true);
17 CHECK_EQ (encode_base64 (
"foo") ==
"Zm9v",
true);
18 CHECK_EQ (encode_base64 (
"foob") ==
"Zm9vYg==",
true);
19 CHECK_EQ (encode_base64 (
"fooba") ==
"Zm9vYmE=",
true);
20 CHECK_EQ (encode_base64 (
"foobar") ==
"Zm9vYmFy",
true);
21 CHECK_EQ (decode_base64 (
"Zg==") ==
"f",
true);
22 CHECK_EQ (decode_base64 (
"Zm8=") ==
"fo",
true);
23 CHECK_EQ (decode_base64 (
"Zm9v") ==
"foo",
true);
24 CHECK_EQ (decode_base64 (
"Zm9vYg==") ==
"foob",
true);
25 CHECK_EQ (decode_base64 (
"Zm9vYmE=") ==
"fooba",
true);
26 CHECK_EQ (decode_base64 (
"Zm9vYmFy") ==
"foobar",
true);
30 CHECK_EQ (decode_base64 (
"") ==
"",
true);
31 CHECK_EQ (decode_base64 (
"Zg==") ==
"f",
true);
32 CHECK_EQ (decode_base64 (
"Zm8=") ==
"fo",
true);
33 CHECK_EQ (decode_base64 (
"Zm9v") ==
"foo",
true);
34 CHECK_EQ (decode_base64 (
"Zm9vYg==") ==
"foob",
true);
35 CHECK_EQ (decode_base64 (
"Zm9vYmE=") ==
"fooba",
true);
36 CHECK_EQ (decode_base64 (
"Zm9vYmFy") ==
"foobar",
true);
The list class represents a linked list.
string decode_base64(array< int > ac)
static string encode_base64(char c1, char c2, char c3)
TEST_CASE("test for operator+= and advance()")