diff --git a/autotest/EscTest/EscTest.cpp b/autotest/EscTest/EscTest.cpp index 6cee241b2..cc3204177 100644 --- a/autotest/EscTest/EscTest.cpp +++ b/autotest/EscTest/EscTest.cpp @@ -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"); } diff --git a/autotest/EscTest/script.esc b/autotest/EscTest/script.esc index b9fa440eb..d32e672bf 100644 --- a/autotest/EscTest/script.esc +++ b/autotest/EscTest/script.esc @@ -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++; + } }