.autotest

git-svn-id: svn://ultimatepp.org/upp/trunk@10420 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-11-12 19:52:08 +00:00
parent 0e13cd7137
commit d96083a5fb
2 changed files with 9 additions and 0 deletions

View file

@ -138,4 +138,9 @@ CONSOLE_APP_MAIN
DDUMP(global.Get("out")); DDUMP(global.Get("out"));
DDUMP(global.Get("out2")); DDUMP(global.Get("out2"));
DDUMP(global.Get("out3")); DDUMP(global.Get("out3"));
DDUMP(global.Get("out4"));
ASSERT(AsString(global.Get("out")) == "{ \"a\":123, \"b\":\"Hello!\" }");
ASSERT(AsString(global.Get("out2")) == "\"test\"");
ASSERT(AsString(global.Get("out3")) == "[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]");
} }

View file

@ -14,4 +14,8 @@ main() {
:out3 = []; :out3 = [];
for(i = 0; i < 10; i++) for(i = 0; i < 10; i++)
:out3[] = i; :out3[] = i;
a = Zero();
if(a == 0)
:out4 = 1;
} }