diff options
Diffstat (limited to '')
-rw-r--r-- | src/unit/base64.unit | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/unit/base64.unit b/src/unit/base64.unit index 5266b48..bd5bc97 100644 --- a/src/unit/base64.unit +++ b/src/unit/base64.unit | |||
@@ -11,18 +11,18 @@ | |||
11 | 11 | ||
12 | suite MemBuf | 12 | suite MemBuf |
13 | { | 13 | { |
14 | test decode01 | 14 | test decode01 |
15 | { | 15 | { |
16 | unitTest( Bu::decodeStr<Bu::Base64>("RnVu") == "Fun" ); | 16 | unitTest( Bu::decodeStr<Bu::Base64>("RnVu") == "Fun" ); |
17 | unitTest( Bu::decodeStr<Bu::Base64>("V2hhdA==") == "What" ); | 17 | unitTest( Bu::decodeStr<Bu::Base64>("V2hhdA==") == "What" ); |
18 | unitTest( Bu::decodeStr<Bu::Base64>("SGVsbG8=") == "Hello" ); | 18 | unitTest( Bu::decodeStr<Bu::Base64>("SGVsbG8=") == "Hello" ); |
19 | } | 19 | } |
20 | 20 | ||
21 | test encode01 | 21 | test encode01 |
22 | { | 22 | { |
23 | unitTest( Bu::decodeStr<Bu::Base64>("R n V u") == "Fun" ); | 23 | unitTest( Bu::decodeStr<Bu::Base64>("R n V u") == "Fun" ); |
24 | unitTest( Bu::decodeStr<Bu::Base64>("V2\n\n\thh dA==") == "What" ); | 24 | unitTest( Bu::decodeStr<Bu::Base64>("V2\n\n\thh dA==") == "What" ); |
25 | unitTest( Bu::decodeStr<Bu::Base64>("\n\n\t\t SGV\r\ns\tbG8\n=") == "Hello" ); | 25 | unitTest( Bu::decodeStr<Bu::Base64>("\n\n\t\t SGV\r\ns\tbG8\n=") == "Hello" ); |
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||