Skip to content
Snippets Groups Projects
Commit ae60c21c authored by Mirar (Pontus Hagland)'s avatar Mirar (Pontus Hagland)
Browse files

added some more test to test that scopes work correct

Rev: src/testsuite.in:1.242
parent ad3cd60c
No related branches found
No related tags found
No related merge requests found
test_true([["$Id: testsuite.in,v 1.241 1999/11/27 14:48:25 mast Exp $"]]); test_true([["$Id: testsuite.in,v 1.242 1999/12/02 19:16:50 mirar Exp $"]]);
cond([[all_constants()->_verify_internals]], cond([[all_constants()->_verify_internals]],
[[ [[
...@@ -188,6 +188,11 @@ class Gnu ...@@ -188,6 +188,11 @@ class Gnu
} }
]]) ]])
test_compile_any([[int log() { return 17; } class Greta { int hanna() { return log(); } }]])
test_compile_any([[int kajsa(int a,int b) { return 17; } class Jenny { int kajsa() { return 17; } class Greta { int hanna() { return kajsa(); } } }]])
test_any([[add_constant("kajsa",lambda(int a,int b) { return 17; }); return compile_string("int kajsa() { return 17; } class Greta { int hanna() { return kajsa(); } }")()->kajsa()]],1)
test_compile([[Stdio.File foo=Stdio.File();]]) test_compile([[Stdio.File foo=Stdio.File();]])
test_compile([[ string|multiset(string) foo; test_compile([[ string|multiset(string) foo;
array(string) gazonk; array(string) gazonk;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment