Test for JET-68 + regression tests turned on
This commit is contained in:
@@ -16,7 +16,7 @@ fun evaluateArg(expr: AbstractStringBuilder, numbers: ArrayList<Int>): Int {
|
|||||||
val n = c - '0'
|
val n = c - '0'
|
||||||
if (!numbers.contains(n)) throw new Exception("You used incorrect number: " + n)
|
if (!numbers.contains(n)) throw new Exception("You used incorrect number: " + n)
|
||||||
numbers.remove(n)
|
numbers.remove(n)
|
||||||
return n \
|
return n
|
||||||
}
|
}
|
||||||
throw new Exception("Syntax error: Unrecognized character " + c)
|
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 parse(cmd: String): Command? { return null }
|
||||||
|
|
||||||
fun Any.equals(other : Any?) : Boolean = this === other
|
fun Any.equals(other : Any?) : Boolean = this === other
|
||||||
|
|||||||
@@ -23,6 +23,13 @@ public class JetPsiCheckerTest extends JetTestCaseBase {
|
|||||||
return new JetPsiCheckerTest(dataPath, name);
|
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() {
|
suite.addTest(JetTestCaseBase.suiteForDirectory(getTestDataPathBase(), "/checker/infos/", false, new JetTestCaseBase.NamedTestFactory() {
|
||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user