blob: 17d8857b5ff295f415d7c23ca00200a3cab5a4d2 [file] [log] [blame]
test@ for (i in 0..max) {
var n = substring.length()
var j = i
var k = 0
while (n-- != 0) {
if (searchMe.charAt(j++) !== substring.charAt(k++)) {
continue@test
}
}
foundIt = true
break@test
}
println(if (foundIt) "Found it" else "Didn't find it")