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
157d4740
Commit
157d4740
authored
Feb 24, 2020
by
Markus Klinik
Browse files
test case for empty project
parent
245a9828
Changes
12
Hide whitespace changes
Inline
Side-by-side
src/Util.rsc
View file @
157d4740
...
...
@@ -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);
}
...
...
src/test-data/assignment02-double-zip/._.DS_Store
0 → 100755
View file @
157d4740
File added
src/test-data/assignment02-double-zip/._feedback.txt
0 → 100755
View file @
157d4740
File added
src/test-data/assignment02-double-zip/._personal-prof-feedback2020-02-16T14_53_23.530Z.txt
0 → 100755
View file @
157d4740
File added
src/test-data/assignment02-double-zip/feedback.txt
0 → 100755
View file @
157d4740
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
src/test-data/assignment02-double-zip/metadata.json
0 → 100755
View file @
157d4740
{
"courseName"
:
"oo1920"
,
"folderId"
:
"34172"
,
"entityType"
:
"Group"
,
"entityId"
:
128861
,
"submissionDate"
:
"2020-02-16T14_53_23.530Z"
}
\ No newline at end of file
src/test-data/assignment02-double-zip/personal-prof-feedback2020-02-16T14_53_23.530Z.txt
0 → 100755
View file @
157d4740
Hi, this is Personal Prof, the automatic feedback system.
Here is what I think about your submission.
src/test-data/assignment02-double-zip/submission/._.DS_Store
0 → 100755
View file @
157d4740
File added
src/test-data/assignment02-double-zip/submission/._Assingment 2 Answers Samuel Dankers && Floris van der Werff
0 → 100755
View file @
157d4740
File added
src/test-data/assignment02-double-zip/submission/Assingment 2 Answers Samuel Dankers && Floris van der Werff
0 → 100755
View file @
157d4740
File added
src/test-data/assignment02-double-zip/submission/Assingment 2 Answers Samuel Dankers && Floris van der Werff.zip.contents
0 → 100755
View file @
157d4740
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]
src/test/AssignmentHangmanRulesSpec.rsc
View file @
157d4740
...
...
@@ -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
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