Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WS-17-18
assignment-tests
Commits
e6697220
Commit
e6697220
authored
Mar 21, 2018
by
Alexander
Browse files
Add sports-venue error test
parent
c7fb6984
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/final_assignment/task_2/tests/ErrorTests.java
View file @
e6697220
...
@@ -37,4 +37,13 @@ public class ErrorTests extends Assignment2TestBase {
...
@@ -37,4 +37,13 @@ public class ErrorTests extends Assignment2TestBase {
void
iocCodeErrors
()
{
void
iocCodeErrors
()
{
testWithIOFile
(
getDataFolderDirectory
()
+
"error_tests/ioc_code.io"
);
testWithIOFile
(
getDataFolderDirectory
()
+
"error_tests/ioc_code.io"
);
}
}
/**
* This tests several ioc-code errors
*/
@Test
@DisplayName
(
"sports-venue"
)
void
sportsVenueErrors
()
{
testWithIOFile
(
getDataFolderDirectory
()
+
"error_tests/sports_venue.io"
);
}
}
}
src/final_assignment/task_2/tests/data/error_tests/sports_venue.io
0 → 100644
View file @
e6697220
Automatically
created
test
>
add
-
admin
sebastian
;
st
ü
ker
;
gbi_god
;
modus_ponens
OK
>
login
-
admin
gbi_god
;
modus_ponens
OK
>
add
-
sports
-
venue
Error
,
wrong
parameters
for
this
command
>
add
-
sports
-
venue
Error
,
wrong
parameters
for
this
command
>
add
-
sports
-
venue
;;;;;
Error
,
wrong
parameters
for
this
command
>
add
-
sports
-
venue
001
;
germany
;
karlsruher
institut
f
ü
r
technologie
;
audimin
;
2017
;
1337
Error
,
unknown
country
>
add
-
ioc
-
code
001
;
ger
;
germany
;
1989
OK
>
add
-
sports
-
venue
001
;
germany
;
karlsruher
institut
f
ü
r
technologie
;
audimin
;
2017
;
1337
OK
>
add
-
sports
-
venue
001
;
germany
;
karlsruher
institut
f
ü
r
technologie
;
audimin
;
2017
;
1337
Error
,
this
id
already
exists
>
add
-
sports
-
venue
002
;
germany
;
karlsruher
institut
f
ü
r
technologie
;
bib
;
2017
;-
1
Error
,
negative
(
installed
)
number
of
chairs
>
add
-
sports
-
venue
000
;
germany
;
karlsruher
institut
f
ü
r
technologie
;
bib
;
2017
;
42
Error
,
the
id
is
out
of
bounds
>
add
-
sports
-
venue
1000
;
germany
;
karlsruher
institut
f
ü
r
technologie
;
bib
;
2017
;
42
Error
,
the
id
is
out
of
bounds
\ No newline at end of file
Write
Preview
Markdown
is supported
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