]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
More tests for hex and base64 input
authorNiels Möller <nisse@lysator.liu.se>
Thu, 30 Jan 2003 22:04:50 +0000 (23:04 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 30 Jan 2003 22:04:50 +0000 (23:04 +0100)
and output.

Rev: src/nettle/testsuite/sexp-conv-test:1.5

testsuite/sexp-conv-test

index 9420284538df1cbd23d5e4d71ba1449412da79a8..06349d422d27709f299ad3fee25b98868620c4c0 100755 (executable)
@@ -100,13 +100,19 @@ test_advanced '(#aabb#)' '(|qrs=|)'
 test_advanced '(|qrs=|)' '(|qrs=|)'
 test_advanced_hex '(|qrs=|)' '(#aabb#)'
 test_advanced_hex '(#aabb#)' '(#aabb#)'
+test_advanced_hex '{MToR}' '#11#'
+test_advanced_hex '|EQ==|' '#11#'
 
 test_transport '0:' '{MDo=}'
 test_transport '()' '{KCk=}'
+test_transport '1:A' '{MTpB}'
 test_transport 'foo' '{Mzpmb28=}'
 test_transport '(foo bar baz)' '{KDM6Zm9vMzpiYXIzOmJheik=}'
 
 test_canonical '""' '0:'
+test_canonical '{MDo=}' '0:'
+test_canonical '{KCk=}' '()'
+test_canonical '{MTpB}' '1:A'
 test_canonical 'foo' '3:foo'
 test_canonical 'fooooooooooo' '12:fooooooooooo'
 test_canonical 'fooooooooo' '10:fooooooooo'