Change Section to debug for libmimetic0-dbg.
[debian/mimetic.git] / test / t.base64.cxx
1 #include "t.base64.h"
2 using namespace mimetic;
3 /*
4  * test fields:
5  * input        output in binary mode
6  *
7  */
8 const char* test_base64::test[][2] = {
9 { "a",         "YQ=="        },
10 { "ab",     "YWI="        },
11 { "abc",     "YWJj"        },
12 { "abcd",     "YWJjZA=="    },
13 { "abcde",     "YWJjZGU="    },
14 { "abcdef",     "YWJjZGVm"    },
15 { "abcdefg",     "YWJjZGVmZw=="    },
16 { "abcdefgh",     "YWJjZGVmZ2g="    },
17 { "abcdefghi",     "YWJjZGVmZ2hp"    },
18 { "abcdefghil",    "YWJjZGVmZ2hpbA=="    },
19 { "abcdefghilm",    "YWJjZGVmZ2hpbG0="    },
20 { "abcdefghilmn",    "YWJjZGVmZ2hpbG1u"    },
21 { "abcdefghilmno",    "YWJjZGVmZ2hpbG1ubw=="    },
22 { "abcdefghilmnop",    "YWJjZGVmZ2hpbG1ub3A="    },
23 { "abcdefghilmnopq",    "YWJjZGVmZ2hpbG1ub3Bx"    },
24 { "abcdefghilmnopqr",    "YWJjZGVmZ2hpbG1ub3Bxcg=="    },
25 { "abcdefghilmnopqrs",    "YWJjZGVmZ2hpbG1ub3BxcnM="    },
26 { "abcdefghilmnopqrst",    "YWJjZGVmZ2hpbG1ub3BxcnN0"    },
27 { "abcdefghilmnopqrstu","YWJjZGVmZ2hpbG1ub3BxcnN0dQ=="    },
28 { "abcdefghilmnopqrstuv","YWJjZGVmZ2hpbG1ub3BxcnN0dXY="    },
29 { "abcdefghilmnopqrstuvz","YWJjZGVmZ2hpbG1ub3BxcnN0dXZ6"    },
30 // binary
31 { "\1","AQ=="    },
32 { "\2","Ag=="    },
33 { "\1\2","AQI="    },
34 { "\1\2\3","AQID"    },
35 { "abcde\1fghi\2lmno\3pqr\4stu\5vz","YWJjZGUBZmdoaQJsbW5vA3BxcgRzdHUFdno="    },
36 { 0, 0 }
37 };