rascal
rascal copied to clipboard
Failed asserts are not unexpected
Describe the bug
The executorSmokeTest contains a number of assert statements that might fail during a test:
error: executorSmokeTest @ |file:///Users/jurgenv/git/rascal/src/org/rascalmpl/tutor/lang/rascal/tutor/repl/TutorCommandExecutor.rsc|(1227,878,<42,0>,<67,1>)
Test lang::rascal::tutor::repl::TutorCommandExecutor::executorSmokeTest failed due to
test threw unexpected exception
Exception:
/Users/jurgenv/git/rascal/src/org/rascalmpl/tutor/lang/rascal/tutor/repl/TutorCommandExecutor.rsc:55,72: AssertionFailed("result of println should be printed on stdout")
at executorSmokeTest(|file:///Users/jurgenv/git/rascal/src/org/rascalmpl/tutor/lang/rascal/tutor/repl/TutorCommandExecutor.rsc|(1227,878,<42,0>,<67,1>))
at $shell$(|main://$shell$|)
Failing asserts in a test function should be reported as a plain test failure rather than an "unexpected exception".