Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pieter Koopman
Personal Prof public repository
Commits
0468a8ad
Commit
0468a8ad
authored
Oct 04, 2019
by
Markus Klinik
Browse files
Assignment02RulesSpec: add test case
parent
f4c55a17
Changes
1
Hide whitespace changes
Inline
Side-by-side
java-feedback-rascal/test/Assignment02RulesSpec.rsc
View file @
0468a8ad
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment