New J2K: Fix existing test data

This commit is contained in:
Ilya Kirillov
2018-12-01 15:55:37 +03:00
committed by Ilya Kirillov
parent 5236858c20
commit f752796408
330 changed files with 2800 additions and 60 deletions
@@ -0,0 +1,13 @@
test@ for (i in 0..max!!) {
var n: Int = 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")