Commit 0468a8ad authored by Markus Klinik's avatar Markus Klinik
Browse files

Assignment02RulesSpec: add test case

parent f4c55a17
module Assignment02RulesSpec
import Set;
import IO;
import SpecUtil;
import Assignment02Rules;
......@@ -9,4 +10,10 @@ test bool allGood()
errors = allAssignment02Rules(loadTestProject("assignment02-hangman-example-solution"));
return isEmpty(errors);
test bool wrongProject()
errors = allAssignment02Rules(loadTestProject("assignment01-good"));
return "There should be one class called Gallows" in { message | error(message, _) <- errors };
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment