1465418c2b
#KT-7151 Fixed
13 lines
301 B
Kotlin
13 lines
301 B
Kotlin
@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") |