mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@11543 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7f27e396ee
commit
1dac61c4f9
2 changed files with 10 additions and 0 deletions
|
|
@ -174,10 +174,13 @@ CONSOLE_APP_MAIN
|
|||
DDUMP(global.Get("out2"));
|
||||
DDUMP(global.Get("out3"));
|
||||
DDUMP(global.Get("out4"));
|
||||
DDUMP(global.Get("out5"));
|
||||
|
||||
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 ]");
|
||||
ASSERT(AsString(global.Get("out4")) == "1");
|
||||
ASSERT(AsString(global.Get("out5")) == "5");
|
||||
|
||||
LOG("=========================== OK");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,4 +18,11 @@ main() {
|
|||
a = Zero();
|
||||
if(a == 0)
|
||||
:out4 = 1;
|
||||
|
||||
:out5 = 0;
|
||||
for(i = 0; i < 10; i++) {
|
||||
if(i < 5)
|
||||
continue;
|
||||
:out5++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue