Commit 432de132 authored by Niels Möller's avatar Niels Möller
Browse files

New tests for hex and base64 literal

output.

Rev: src/nettle/testsuite/sexp-conv-test:1.4
parent cae7cd67
......@@ -31,6 +31,22 @@ test_advanced () {
fi
}
test_advanced_hex () {
echo $n "$1$c" > test.in
if ../tools/sexp-conv -s hex <test.in >test1.out ; then
true
else
exit 1
fi
echo "$2" > test2.out
if cmp test1.out test2.out ; then
true
else
exit 1;
fi
}
test_transport () {
echo $n "$1$c" > test.in
if ../tools/sexp-conv -s transport <test.in >test1.out ; then
......@@ -80,6 +96,11 @@ test_advanced '; comment
test_advanced '(foo[bar]foo)' '(foo [bar]foo)'
test_advanced '(#aabb#)' '(|qrs=|)'
test_advanced '(|qrs=|)' '(|qrs=|)'
test_advanced_hex '(|qrs=|)' '(#aabb#)'
test_advanced_hex '(#aabb#)' '(#aabb#)'
test_transport '0:' '{MDo=}'
test_transport '()' '{KCk=}'
test_transport 'foo' '{Mzpmb28=}'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment