Skip to content
Snippets Groups Projects
Commit b476f36f authored by Etienne Kneuss's avatar Etienne Kneuss Committed by Philippe Suter
Browse files

Do not accept this

parent 9666d8f3
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@ class CodeGenEvaluation extends FunSuite {
//Type error
val expr3 = FunctionInvocation(fact, Seq(BooleanLiteral(false)))
assert(javaEval(unit)(expr3) === IntLiteral(1))
assert(javaEval(unit)(expr3) != IntLiteral(1), "This should be a type error")
}
forFile("Prog002.scala") { out =>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment