Test for JET-68 + regression tests turned on

This commit is contained in:
Andrey Breslav
2011-06-01 15:25:11 +04:00
parent ffba7af73a
commit dc25c7bb3b
4 changed files with 21 additions and 1 deletions
@@ -16,7 +16,7 @@ fun evaluateArg(expr: AbstractStringBuilder, numbers: ArrayList<Int>): Int {
val n = c - '0'
if (!numbers.contains(n)) throw new Exception("You used incorrect number: " + n)
numbers.remove(n)
return n \
return n
}
throw new Exception("Syntax error: Unrecognized character " + c)
}
@@ -0,0 +1,11 @@
class Foo()
fun test() {
val f : Foo? = null
if (f == null) {
}
if (f != null) {
}
}
@@ -1,3 +1,5 @@
class Command() {}
fun parse(cmd: String): Command? { return null }
fun Any.equals(other : Any?) : Boolean = this === other
@@ -23,6 +23,13 @@ public class JetPsiCheckerTest extends JetTestCaseBase {
return new JetPsiCheckerTest(dataPath, name);
}
}));
suite.addTest(JetTestCaseBase.suiteForDirectory(getTestDataPathBase(), "/checker/regression/", false, new JetTestCaseBase.NamedTestFactory() {
@NotNull
@Override
public Test createTest(@NotNull String dataPath, @NotNull String name) {
return new JetPsiCheckerTest(dataPath, name);
}
}));
suite.addTest(JetTestCaseBase.suiteForDirectory(getTestDataPathBase(), "/checker/infos/", false, new JetTestCaseBase.NamedTestFactory() {
@NotNull
@Override