diff --git a/library/src/commonTest/kotlin/ScriptTest.kt b/library/src/commonTest/kotlin/ScriptTest.kt index 1eb78bd..60f4706 100644 --- a/library/src/commonTest/kotlin/ScriptTest.kt +++ b/library/src/commonTest/kotlin/ScriptTest.kt @@ -1696,4 +1696,16 @@ class ScriptTest { """.trimIndent()) } + @Test + fun testForContinue() = runTest { + eval(""" + var x = 0 + for( i in 1..10 ) { + if( i % 2 == 0 ) continue + println(i) + x++ + } + assertEquals(5, x) + """.trimIndent()) + } } \ No newline at end of file