Granular test configurations
This commit is contained in:
@@ -0,0 +1 @@
|
||||
test: for (int i = 0; i <= max; i++) { int n = substring.length(); int j = i; int k = 0; while (n-- != 0) { if (searchMe.charAt(j++) != substring.charAt(k++)) { continue test; } } foundIt = true; break test; } System.out.println(foundIt ? "Found it" : "Didn't find it"); }}
|
||||
@@ -0,0 +1,18 @@
|
||||
@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"))
|
||||
Reference in New Issue
Block a user