mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final1.git
synced 2024-11-08 18:00:38 +00:00
Add large generic test by David Schwärzle
This commit is contained in:
parent
5fd90ef2bc
commit
1653db3c3b
208
lgt_input.txt
Normal file
208
lgt_input.txt
Normal file
@ -0,0 +1,208 @@
|
||||
add
|
||||
add track
|
||||
add track () -> ()
|
||||
list tracks
|
||||
add track (5,0) -> (16,0)
|
||||
add track (16,3) -> (16,0)
|
||||
add switch (16,3) -> (14,3),(18,3)
|
||||
list tracks
|
||||
set switch 3 position (14,3)
|
||||
list tracks
|
||||
add track (5,0) -> (5,8)
|
||||
add track (5,0) -> (5,-5)
|
||||
add track (5,8) -> (0,0)
|
||||
add track (0,0) -> (0,5)
|
||||
add track (5,8) -> (2,8)
|
||||
add track (2,8) -> (2,11)
|
||||
add track (2,11) -> (5,11)
|
||||
add switch (5,13) -> (5,11),(2,13)
|
||||
add track (5,13) -> (16,13)
|
||||
add track (16,13) -> (16,11)
|
||||
add switch (16,11) -> (14,11),(18,11)
|
||||
add track (14,11) -> (14,3)
|
||||
add track (18,11) -> (18,3)
|
||||
list coaches
|
||||
create coach passenger 1 true true
|
||||
create coach passenger 0 true true
|
||||
create coach catTransporter 5 true true
|
||||
create coach freight 1 false false
|
||||
list coaches
|
||||
add train 1 W1
|
||||
list coaches
|
||||
delete rolling stock W1
|
||||
delete train 1
|
||||
delete rolling stock W1
|
||||
list engines
|
||||
create engine steam T3 Küstenwagen 1 true true
|
||||
create engine steam T3 Emma -10 true true
|
||||
create engine catSteam T3 Emma 1 true true
|
||||
create engine steam T3 Emma 1 false false
|
||||
create engine steam W Emma 1 true true
|
||||
create engine steam T3 Emm.a 1 true true
|
||||
list engines
|
||||
add train 1 T3-Küstenwagen
|
||||
list engines
|
||||
delete rolling stock T3-Küstenwagen
|
||||
delete train 1
|
||||
delete rolling stock T3-Küstenwagen
|
||||
list train-sets
|
||||
create train-set KIT Exprεss 3 true true
|
||||
create train-set KIT Exprεss -42 true true
|
||||
create train-set KIT Exprεss 3 false false
|
||||
create train-set KIT Exprεss 3 true true
|
||||
create train-set KIT _Exprεss 3 true true
|
||||
list train-sets
|
||||
add train 1 KIT-Exprεss
|
||||
list train-sets
|
||||
delete rolling stock KIT-Exprεss
|
||||
delete train 1
|
||||
delete rolling stock KIT-Exprεss
|
||||
create coach passenger 1 true true
|
||||
create coach passenger 3 true true
|
||||
create coach passenger 5 true true
|
||||
create coach freight 1 true false
|
||||
create coach special 3 true true
|
||||
create coach special 3 false true
|
||||
create engine steam KIT Rennmühle 1 true true
|
||||
create engine electrical KIT Defekt 1 true true
|
||||
create engine diesel KIT 42 1 true false
|
||||
create train-set KVV W1 2 true true
|
||||
create train-set KVV W2 2 true true
|
||||
create train-set KVV W3 2 true true
|
||||
create train-set VVS W1 3 true true
|
||||
create train-set VVS W2 3 true true
|
||||
list trains
|
||||
add train 0 W1
|
||||
add train 1 W
|
||||
add train 1 T3-Emma
|
||||
add train 1 KIT-Rennmühle
|
||||
add train 1 W6
|
||||
add train 1 W2
|
||||
list trains
|
||||
add train 2 VVS-W1
|
||||
add train 3 KVV-W1
|
||||
add train 3 W1
|
||||
add train 3 VVS-W1
|
||||
add train 3 KVV-W2
|
||||
delete train 2
|
||||
delete train 2
|
||||
add train 4 VVS-W1
|
||||
add train 2 VVS-W1
|
||||
list trains
|
||||
add train 4 W3
|
||||
add train 4 KIT-Defekt
|
||||
add train 4 W5
|
||||
step 1
|
||||
put train 1 at (5,2) in direction 0,1
|
||||
set switch 11 position (14,11)
|
||||
set switch 8 position (5,11)
|
||||
step 0
|
||||
step 1
|
||||
put train 1 at (5,2) in direction ,1
|
||||
put train 1 at (5,2) in direction (0,1)
|
||||
put train 5 at (5,2) in direction (0,1)
|
||||
put train 1 at (5,2) in direction 1,1
|
||||
put train 1 at (15,15) in direction 0,1
|
||||
put train 1 at (5,2) in direction 1,0
|
||||
put train 4 at (5,2) in direction 0,1
|
||||
add train 4 KIT-42
|
||||
add train 4 W4
|
||||
put train 4 at (5,2) in direction 0,1
|
||||
step 6
|
||||
step 58
|
||||
delete track -20
|
||||
delete track 20
|
||||
delete track 1
|
||||
delete track 4
|
||||
delete track 2
|
||||
delete track 10
|
||||
delete track 6
|
||||
delete track 8
|
||||
delete track 3
|
||||
add track (16,3) -> (16,0)
|
||||
add switch (16,3) -> (14,3),(18,3)
|
||||
step 1
|
||||
set switch 3 position (14,3)
|
||||
step 58
|
||||
delete track 4
|
||||
set switch 8 position (2,13)
|
||||
step 9
|
||||
step 1
|
||||
step 1
|
||||
set switch 8 position (5,11)
|
||||
put train 1 at (8,0) in direction 0,1
|
||||
put train 1 at (8,0) in direction -1,0
|
||||
put train 1 at (2,11) in direction 1,0
|
||||
put train 2 at (5,3) in direction 0,-1
|
||||
step 3
|
||||
put train 1 at (12,0) in direction -1,0
|
||||
put train 2 at (5,3) in direction 0,-1
|
||||
step 3
|
||||
step 1
|
||||
put train 1 at (16,1) in direction 0,1
|
||||
put train 2 at (5,1) in direction 0,-1
|
||||
step 1
|
||||
step 1
|
||||
put train 1 at (16,2) in direction 0,1
|
||||
put train 2 at (5,1) in direction 0,-1
|
||||
step 1
|
||||
step 1
|
||||
set switch 11 position (18,11)
|
||||
step 24
|
||||
set switch 11 position (14,11)
|
||||
put train 1 at (5,0) in direction 0,-1
|
||||
put train 2 at (14,11) in direction 0,1
|
||||
put train 3 at (5,11) in direction 0,-1
|
||||
step 58
|
||||
set switch 11 position (18,11)
|
||||
step 58
|
||||
set switch 11 position (14,11)
|
||||
put train 1 at (5,1) in direction 0,-1
|
||||
put train 2 at (10,0) in direction 1,0
|
||||
put train 3 at (16,1) in direction 0,-1
|
||||
put train 4 at (4,8) in direction 1,0
|
||||
step 1
|
||||
step 1
|
||||
put train 1 at (5,1) in direction 0,-1
|
||||
put train 2 at (5,12) in direction 0,1
|
||||
put train 3 at (10,0) in direction 1,0
|
||||
put train 4 at (16,11) in direction -1,0
|
||||
step 5
|
||||
put train 1 at (5,5) in direction 0,-1
|
||||
put train 2 at (5,12) in direction 0,1
|
||||
put train 3 at (10,0) in direction 1,0
|
||||
put train 4 at (16,11) in direction -1,0
|
||||
step 5
|
||||
step 1
|
||||
set switch 8 position (2,13)
|
||||
put train 4 at (3,13) in direction -1,0
|
||||
put train 2 at (16,12) in direction 0,1
|
||||
step 1
|
||||
step 1
|
||||
put train 4 at (3,13) in direction -1,0
|
||||
put train 2 at (16,11) in direction 0,1
|
||||
step 1
|
||||
step 1
|
||||
step 20
|
||||
put train 1 at (5,0) in direction 0,1
|
||||
put train 2 at (5,8) in direction 0,-1
|
||||
step 58
|
||||
put train 1 at (9,0) in direction 1,0
|
||||
put train 2 at (5,8) in direction 0,-1
|
||||
step 58
|
||||
put train 1 at (9,0) in direction 1,0
|
||||
put train 2 at (2,8) in direction 0,1
|
||||
step 58
|
||||
put train 4 at (5,11) in direction 1,0
|
||||
put train 2 at (2,11) in direction 0,1
|
||||
step 58
|
||||
put train 2 at (2,13) in direction -1,0
|
||||
set switch 8 position (2,13)
|
||||
step 1
|
||||
put train 2 at (5,11) in direction 1,0
|
||||
set switch 8 position (2,13)
|
||||
step 1
|
||||
put train 2 at (5,12) in direction 0,1
|
||||
put train 2 at (5,13) in direction 0,1
|
||||
put train 2 at (5,11) in direction 0,1
|
||||
exit
|
230
lgt_output.txt
Normal file
230
lgt_output.txt
Normal file
@ -0,0 +1,230 @@
|
||||
Error, unknown command
|
||||
Error, invalid add track argument syntax
|
||||
Error, invalid add track argument syntax
|
||||
No track exists
|
||||
1
|
||||
2
|
||||
3
|
||||
t 1 (5,0) -> (16,0) 11
|
||||
t 2 (16,3) -> (16,0) 3
|
||||
s 3 (16,3) -> (14,3),(18,3)
|
||||
OK
|
||||
t 1 (5,0) -> (16,0) 11
|
||||
t 2 (16,3) -> (16,0) 3
|
||||
s 3 (16,3) -> (14,3),(18,3) 2
|
||||
4
|
||||
Error, track would connect to two other rails
|
||||
Error, invalid track segment: not a straight line
|
||||
Error, track is not connected to other tracks
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
No coach exists
|
||||
1
|
||||
Error, rolling stock length has to be positive
|
||||
Error, invalid create coach arguments
|
||||
Error, rolling stocks needs at least one coupling
|
||||
1 none p 1 true true
|
||||
passenger coach W1 added to train 1
|
||||
1 1 p 1 true true
|
||||
Error, could not delete rolling stock
|
||||
OK
|
||||
OK
|
||||
No engine exists
|
||||
T3-Küstenwagen
|
||||
Error, rolling stock length has to be positive
|
||||
Error, invalid create engine argument syntax
|
||||
Error, rolling stocks needs at least one coupling
|
||||
Error, invalid engine class/series
|
||||
Error, invalid create engine argument syntax
|
||||
none s T3 Küstenwagen 1 true true
|
||||
steam engine T3-Küstenwagen added to train 1
|
||||
1 s T3 Küstenwagen 1 true true
|
||||
Error, could not delete rolling stock
|
||||
OK
|
||||
OK
|
||||
No train-set exists
|
||||
KIT-Exprεss
|
||||
Error, rolling stock length has to be positive
|
||||
Error, rolling stocks needs at least one coupling
|
||||
Error, train set identifier already used
|
||||
Error, invalid create train-set arguments
|
||||
none KIT Exprεss 3 true true
|
||||
train-set KIT-Exprεss added to train 1
|
||||
1 KIT Exprεss 3 true true
|
||||
Error, could not delete rolling stock
|
||||
OK
|
||||
OK
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
KIT-Rennmühle
|
||||
KIT-Defekt
|
||||
KIT-42
|
||||
KVV-W1
|
||||
KVV-W2
|
||||
KVV-W3
|
||||
VVS-W1
|
||||
VVS-W2
|
||||
No train exists
|
||||
Error, new train identifier must be next free identifier
|
||||
Error, invalid add train arguments
|
||||
Error, rolling stock not found
|
||||
steam engine KIT-Rennmühle added to train 1
|
||||
Error, could not add rolling stock to train
|
||||
passenger coach W2 added to train 1
|
||||
1 KIT-Rennmühle W2
|
||||
train-set VVS-W1 added to train 2
|
||||
train-set KVV-W1 added to train 3
|
||||
Error, could not add rolling stock to train
|
||||
Error, rolling stock already used
|
||||
train-set KVV-W2 added to train 3
|
||||
OK
|
||||
Error, could not remove train
|
||||
Error, new train identifier must be next free identifier
|
||||
train-set VVS-W1 added to train 2
|
||||
1 KIT-Rennmühle W2
|
||||
2 VVS-W1
|
||||
3 KVV-W1 KVV-W2
|
||||
passenger coach W3 added to train 4
|
||||
electrical engine KIT-Defekt added to train 4
|
||||
special coach W5 added to train 4
|
||||
Error, rail tracks/switches not set up
|
||||
Error, switches not set up
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
Error, invalid put train arguments
|
||||
Error, invalid put train arguments
|
||||
Error, invalid put train arguments
|
||||
Error, invalid train direction
|
||||
Error, could not place train
|
||||
Error, could not place train
|
||||
Error, train is not valid
|
||||
diesel engine KIT-42 added to train 4
|
||||
Error, could not add rolling stock to train
|
||||
OK
|
||||
Train 4 at (5,8)
|
||||
Train 4 at (5,8)
|
||||
Error, could not delete rail segment
|
||||
Error, could not delete rail segment
|
||||
Error, could not delete rail segment
|
||||
Error, could not delete rail segment
|
||||
OK
|
||||
Error, could not delete rail segment
|
||||
Error, could not delete rail segment
|
||||
Error, could not delete rail segment
|
||||
OK
|
||||
2
|
||||
3
|
||||
Error, rail tracks/switches not set up
|
||||
OK
|
||||
Train 4 at (5,8)
|
||||
Error, could not delete rail segment
|
||||
OK
|
||||
Train 4 at (5,11)
|
||||
Crash of train 4
|
||||
OK
|
||||
OK
|
||||
Error, could not place train
|
||||
OK
|
||||
Error, train is already placed
|
||||
OK
|
||||
Crash of train 1,2
|
||||
OK
|
||||
OK
|
||||
Train 1 at (9,0)
|
||||
Train 2 at (5,0)
|
||||
Crash of train 1,2
|
||||
OK
|
||||
OK
|
||||
Train 1 at (16,2)
|
||||
Train 2 at (5,0)
|
||||
Crash of train 1,2
|
||||
OK
|
||||
OK
|
||||
Train 1 at (16,3)
|
||||
Train 2 at (5,0)
|
||||
Train 1 at (15,3)
|
||||
Train 2 at (6,0)
|
||||
OK
|
||||
Crash of train 1
|
||||
Crash of train 2
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
Train 1 at (5,0)
|
||||
Train 2 at (14,11)
|
||||
Train 3 at (5,11)
|
||||
OK
|
||||
Crash of train 1
|
||||
Crash of train 3
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
Train 1 at (5,0)
|
||||
Train 2 at (11,0)
|
||||
Train 3 at (16,0)
|
||||
Train 4 at (5,8)
|
||||
Crash of train 1,2,3,4
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
Crash of train 1,3
|
||||
Crash of train 2,4
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
Train 1 at (5,0)
|
||||
Crash of train 2,4
|
||||
Train 3 at (15,0)
|
||||
Crash of train 1,3
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
Train 2 at (16,13)
|
||||
Train 4 at (2,13)
|
||||
Crash of train 2,4
|
||||
OK
|
||||
OK
|
||||
Train 2 at (16,12)
|
||||
Train 4 at (2,13)
|
||||
Train 2 at (16,13)
|
||||
Crash of train 4
|
||||
Crash of train 2
|
||||
OK
|
||||
Error, could not place train
|
||||
Crash of train 1
|
||||
OK
|
||||
Error, could not place train
|
||||
Crash of train 1
|
||||
OK
|
||||
Error, could not place train
|
||||
Crash of train 1
|
||||
OK
|
||||
Error, could not place train
|
||||
Crash of train 4
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
OK
|
||||
Error,
|
||||
Error,
|
||||
OK
|
Loading…
Reference in New Issue
Block a user