Java to Kotlin converter: no more 2 conversion modes for each test, just a few tests to test non-standard settings

This commit is contained in:
Valentin Kipyatkov
2014-06-03 22:12:45 +04:00
parent 57d118e13d
commit 6b11a5b3d9
597 changed files with 936 additions and 5558 deletions
@@ -1,7 +1,7 @@
@test for (i in 0..max) {
var n: Int = substring.length()
var j: Int = i
var k: Int = 0
val n = substring.length()
val j = i
val k = 0
while (n-- != 0) {
if (searchMe.charAt(j++) != substring.charAt(k++)) {
continue@test
@@ -10,7 +10,7 @@
foundIt = true
break@test
}
System.out?.println((if (foundIt)
System.out.println((if (foundIt)
"Found it"
else
"Didn't find it"))