From b3f08b4caca4de3aadd18ddd42c1778c3ec09c4a Mon Sep 17 00:00:00 2001 From: sergeych Date: Thu, 12 Jun 2025 12:23:50 +0400 Subject: [PATCH] fix #1 for-continue test --- library/src/commonTest/kotlin/ScriptTest.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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