medal_tests.io 2.45 KB
Newer Older
Leon Jungemeyer's avatar
Leon Jungemeyer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
Tests competition with focus on medals
> add-admin Leon;Mustermann;leon;12345678
OK
> login-admin leon;12345678
OK
> add-ioc-code 001;can;canada;2000
OK
> add-ioc-code 123;ger;deutschland;1994
OK
> add-olympic-sport fencing;fencing
OK
> add-olympic-sport bobsport;bob
OK
> add-athlete 0001;max;mustermann;deutschland;bobsport;bob
OK
> add-competition 0001;2002;deutschland;fencing;fencing;1;0;0
Error, the athlete 0001, max mustermann does not compete in fencing, fencing
> add-competition 0001;2002;deutschland;bobsport;bob;1;1;0
Error, one player can only win one medal at a competition!
> add-competition 0001;2002;deutschland;bobsport;bob;1;0;0
OK
> 0001;2002;deutschland;bobsport;bob;1;1;0
Error, not a valid command!
> add-competition 0000;2002;deutschland;bobsport;bob;1;0;0
Error, An Athlete with ID 0000 does not exist.
> add-competition 0001;2018;deutschland;bobsport;bob;0;2;0
Error, one player can only win one medal at a competition!
> add-competition 0001;2002;deutschland;bobsport;bob;01;0;0
Error, not a valid command!
> add-competition 0001;2002;deutschland;bobsport;bob;1;0;2
Error, one player can only win one medal at a competition!
> add-competition 0001;2002;deutschland;bobsport;bob;1;0;0
Error, Competition already assigned to athlete
> add-competition 0001;2002;deutschland;bobsport;bob;0;1;0
Error, Competition already assigned to athlete
> add-competition 0001;2002;ger;bobsport;bob;1;0;0
Error, A country with name ger does not exist.
> add-competition 0001;2002;deutschland;bobsport;1;0;0
Error, not a valid command!
> add-competition 00001;2002;deutschland;bobsport;bob;1;0;0
Error, not a valid command!
> add-competition 0001;2022;deutschland;bobsport;bob;1;0;0
Error, Year out of range.
> add-competition 0201;2002;deutschland;bobsport;bob;1;0;0
Error, An Athlete with ID 0201 does not exist.
> add-competition 0001;2002;deutschland;bobsport;bob;1;0;0
Error, Competition already assigned to athlete
> add-athlete 0003;max;mustermann;deutschland;bobsport;bob
OK
> list-olympic-sports
bobsport bob
fencing fencing
> add-competition 0003;2018;deutschland;bobsport;bob;1;0;0
OK
> add-competition 0001;2018;deutschland;bobsport;bob;1;0;0
OK
> add-competition 0001;2018;deutschland;bobsport;bob;1;0;0
Error, Competition already assigned to athlete
> add-competition 0001;2018;deutschland;bobsport;bob;0;0;0
Error, Competition already assigned to athlete
> add-athlete 0002;alex;mustermann;deutschland;bobsport;bob
OK
> add-competition 0002;2018;deutschland;bobsport;bob;0;1;0
OK