Move blackBoxFile() testData to box/ directory

Delete all test methods (and empty test classes), since they'll be
auto-generated
This commit is contained in:
Alexander Udalov
2013-01-25 16:13:45 +04:00
committed by Alexander Udalov
parent ecbb2f10ef
commit 41a416da60
438 changed files with 156 additions and 2005 deletions
@@ -68,22 +68,6 @@ public class PatternMatchingTest extends CodegenTestCase {
assertEquals("something", foo.invoke(null, 19));
}
public void testIs() {
blackBoxFile("patternMatching/is.kt");
}
public void testRange() {
blackBoxFile("patternMatching/range.kt");
}
public void testLongInRange() {
blackBoxFile("patternMatching/longInRange.kt");
}
public void testWhenArgumentIsEvaluatedOnlyOnce() {
blackBoxFile("patternMatching/whenArgumentIsEvaluatedOnlyOnce.kt");
}
public void testRangeChar() throws Exception {
loadFile();
Method foo = generateFunction();
@@ -110,10 +94,6 @@ public class PatternMatchingTest extends CodegenTestCase {
assertEquals("something", foo.invoke(null, "C#"));
}
public void testCallProperty() {
blackBoxFile("patternMatching/callProperty.kt");
}
public void testMultipleConditions() throws Exception {
loadText("fun foo(x: Any) = when(x) { 0, 1 -> \"bit\"; else -> \"something\" }");
Method foo = generateFunction();
@@ -121,20 +101,4 @@ public class PatternMatchingTest extends CodegenTestCase {
assertEquals("bit", foo.invoke(null, 1));
assertEquals("something", foo.invoke(null, 2));
}
public void testNullableWhen() {
blackBoxFile("patternMatching/nullableWhen.kt");
}
public void testKt2466() {
blackBoxFile("patternMatching/kt2466.kt");
}
public void testMatchNotNullAgainstNullable() {
blackBoxFile("patternMatching/matchNotNullAgainstNullable.kt");
}
public void testKt2457() {
blackBoxFile("regressions/kt2457.kt");
}
}