From: Niels Möller Date: Wed, 23 Oct 2002 20:11:53 +0000 (+0200) Subject: Better tests. X-Git-Tag: nettle_1.7_release_20030311~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b65d057d7d8f13ed950ab52573698a66700c2c8;p=thirdparty%2Fnettle.git Better tests. Rev: src/nettle/examples/sexp-conv-test:1.2 --- diff --git a/examples/sexp-conv-test b/examples/sexp-conv-test index 1cabbd2f..c6de7ded 100755 --- a/examples/sexp-conv-test +++ b/examples/sexp-conv-test @@ -23,6 +23,16 @@ test_conv () { test_conv "3:foo" "foo" -a test_conv "4:3des" '"3des"' -a -test_conv "(3:foo [bar]foo)" "(3:foo[3:bar]3:foo)" -c +test_conv '"foo"' "foo" -a +test_conv '4:foo +' '"foo\n"' +test_conv '2:"\' '"\"\\"' +test_conv "()" "()" +test_conv '(foo bar baz)' '(foo bar + baz)' +test_conv '; comment +()' "()" + +test_conv "(foo[bar]foo)" "(foo [bar]foo)" -a exit 0