From 3b65d057d7d8f13ed950ab52573698a66700c2c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 23 Oct 2002 22:11:53 +0200
Subject: [PATCH] Better tests.

Rev: src/nettle/examples/sexp-conv-test:1.2
---
 examples/sexp-conv-test | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

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
-- 
GitLab