Files
kotlin-fork/j2k/tests/testData/ast/labelStatement/complicatedExampleFromJavaTutorial.kt
T
Pavel V. Talanov 741e031ff1 Converter:
Use formatter in converter tests
Reformat test data
2013-12-22 16:46:51 +04:00

18 lines
282 B
Kotlin

@test for (i in 0..max) {
var n: Int = substring.length()
var j: Int = i
var k: Int = 0
while (n-- != 0)
{
if (searchMe.charAt(j++) != substring.charAt(k++))
{
continue@test
}
}
foundIt = true
break@test
}
System.out?.println((if (foundIt)
"Found it"
else
"Didn't find it"))