Commit 157d4740 authored by Markus Klinik's avatar Markus Klinik
Browse files

test case for empty project

parent 245a9828
......@@ -48,7 +48,7 @@ loc getMainClass(M3 model)
mainClasses = range(domainR(invert(model.containment), getMainMethods(model)));
if(size(mainClasses) < 1)
{
throw error("There should be a Main class.", |file:///|);
throw error("There should be a Main class", |file:///|);
}
return getOneFrom(mainClasses);
}
......
Grade: 0
Feedback: You doublezipped your project (which was the one for week 1) so I have to give you a fail. Please try and submit your solutions in the correct format from now on (in Netbeans you have an export to zip option).
\ No newline at end of file
{
"courseName": "oo1920",
"folderId": "34172",
"entityType": "Group",
"entityId": 128861,
"submissionDate": "2020-02-16T14_53_23.530Z"
}
\ No newline at end of file
Hi, this is Personal Prof, the automatic feedback system.
Here is what I think about your submission.
Archive: 128861 - 34172 - AsgnA 140 - Samuel Dankers - 2020-02-16T14_53_23.530Z/submission/Assingment 2 Answers Samuel Dankers && Floris van der Werff.zip
inflating: 128861 - 34172 - AsgnA 140 - Samuel Dankers - 2020-02-16T14_53_23.530Z/submission/Assingment 2 Answers Samuel Dankers && Floris van der Werff [binary]
creating: 128861 - 34172 - AsgnA 140 - Samuel Dankers - 2020-02-16T14_53_23.530Z/submission/__MACOSX/
inflating: 128861 - 34172 - AsgnA 140 - Samuel Dankers - 2020-02-16T14_53_23.530Z/submission/__MACOSX/._Assingment 2 Answers Samuel Dankers && Floris van der Werff [binary]
......@@ -38,6 +38,19 @@ test bool aHangmannoUseStringBuilder()
test bool aHangmanparameterizedView()
{
errors = allAssignmentHangmanRules(loadTestProject("assignment02-parameterized-view"));
print(errors);
return isEmpty(errors);
}
// Some students handed in a doubly zipped submission, where personal prof could
// not find a Main class. This led to an uncaught exception. This test case runs
// the hangman rules on their submission.
test bool aHangmanDoubleZip()
{
errors = allAssignmentHangmanRules(loadTestProject("assignment02-double-zip"));
for( err <- errors ) println(err);
return
{ "There should be a Main class"
, "There should be a class called Gallows"
} == messages(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