From 0a6ffbca7d6af2fccc62034f66fd86a7240e24eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Thu, 13 Feb 1997 20:42:39 -0800 Subject: [PATCH] tests added for old core-dumping bugs Rev: src/testsuite.in:1.21 --- src/testsuite.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/testsuite.in b/src/testsuite.in index 58947cc277..6c41dcc157 100644 --- a/src/testsuite.in +++ b/src/testsuite.in @@ -1,3 +1,6 @@ +test_compile_error([[mapping (string:array(string:string)) foo=([]); ]]) +test_compile_error([[int a() { switch(random(2)) { case 3: if(random(2)) { case 0: return 1; } else { case 1: return 2; } } }]]) + test_true(encode_value(0)) test_true(encode_value(0)[0]=='\266') define(test_encode, [[ test_equal($1, decode_value(encode_value($1))) ]]) @@ -40,7 +43,7 @@ test_true(arrayp( _next(({})) || _prev(({})))) test_any(object o=this_object(); while(o=_next(o))); test_any(object o=this_object(); while(o=_prev(o))); -test_true([["$Id: testsuite.in,v 1.20 1997/02/13 02:12:32 hubbe Exp $"]]) +test_true([["$Id: testsuite.in,v 1.21 1997/02/14 04:42:39 hubbe Exp $"]]) test_any([[object(Stdio.File) o=Stdio.File(); return objectp(o);]],1) test_any([[object o=Regexp("foo"); return objectp(o);]],1) test_any([[object o=Regexp("foo"); return object_program(o);]],Regexp) -- GitLab