From 1ab66a2292f042a0c7facc9c65d7cf701a6e1ace Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Tue, 18 Feb 2020 09:42:20 +0100 Subject: [PATCH] Add test case --- fuzz9_input.txt | 13 +++++++++++++ fuzz9_output.txt | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 fuzz9_input.txt create mode 100644 fuzz9_output.txt diff --git a/fuzz9_input.txt b/fuzz9_input.txt new file mode 100644 index 0000000..0eb80e4 --- /dev/null +++ b/fuzz9_input.txt @@ -0,0 +1,13 @@ +add track (2147483647,0) -> (0,0) +add track (0,0) -> (-2147483648,0) +list tracks +create engine electrical T3 Marie 1 false true +add train 1 T3-Marie +put train 1 at (0,0) in direction -1,0 +step 1000 +delete train 1 +add train 1 T3-Marie +put train 1 at (2147483637,0) in direction 1,0 +step 10 +step 1 +exit diff --git a/fuzz9_output.txt b/fuzz9_output.txt new file mode 100644 index 0000000..6b48fb0 --- /dev/null +++ b/fuzz9_output.txt @@ -0,0 +1,13 @@ +1 +2 +t 1 (2147483647,0) -> (0,0) 2147483647 +t 2 (0,0) -> (-2147483648,0) 2147483648 +T3-Marie +electrical engine T3-Marie added to train 1 +OK +Train 1 at (-1000,0) +OK +electrical engine T3-Marie added to train 1 +OK +Train 1 at (2147483647,0) +Crash of train 1