From 849c7d768992d2ac794ad6fa2932ef95708f3675 Mon Sep 17 00:00:00 2001 From: unknown <176206@bme.hu> Date: Wed, 29 Oct 2025 17:07:49 +0100 Subject: [PATCH 1/2] Tests --- test-data/input-1.txt | 2 ++ test-data/input-2.txt | 3 +++ test-data/input-3.txt | 1 + test-data/input-4.txt | 1 + test-data/input-5.txt | 2 ++ test-data/output-1.txt | 2 ++ test-data/output-2.txt | 3 +++ test-data/output-3.txt | 1 + test-data/output-4.txt | 1 + test-data/output-5.txt | 2 ++ 10 files changed, 18 insertions(+) create mode 100644 test-data/input-1.txt create mode 100644 test-data/input-2.txt create mode 100644 test-data/input-3.txt create mode 100644 test-data/input-4.txt create mode 100644 test-data/input-5.txt create mode 100644 test-data/output-1.txt create mode 100644 test-data/output-2.txt create mode 100644 test-data/output-3.txt create mode 100644 test-data/output-4.txt create mode 100644 test-data/output-5.txt diff --git a/test-data/input-1.txt b/test-data/input-1.txt new file mode 100644 index 0000000..ebc53b5 --- /dev/null +++ b/test-data/input-1.txt @@ -0,0 +1,2 @@ +GT4500,0,0,0,0 +TORPEDO,ALL \ No newline at end of file diff --git a/test-data/input-2.txt b/test-data/input-2.txt new file mode 100644 index 0000000..58f2c81 --- /dev/null +++ b/test-data/input-2.txt @@ -0,0 +1,3 @@ +GT4500,1,0,0,0 +TORPEDO,SINGLE +TORPEDO,SINGLE \ No newline at end of file diff --git a/test-data/input-3.txt b/test-data/input-3.txt new file mode 100644 index 0000000..ed27d77 --- /dev/null +++ b/test-data/input-3.txt @@ -0,0 +1 @@ +GT4500,1,0 \ No newline at end of file diff --git a/test-data/input-4.txt b/test-data/input-4.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/test-data/input-4.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/test-data/input-5.txt b/test-data/input-5.txt new file mode 100644 index 0000000..584417a --- /dev/null +++ b/test-data/input-5.txt @@ -0,0 +1,2 @@ +GT4500,1,0,0,0 +TORPEDO,A \ No newline at end of file diff --git a/test-data/output-1.txt b/test-data/output-1.txt new file mode 100644 index 0000000..e86752c --- /dev/null +++ b/test-data/output-1.txt @@ -0,0 +1,2 @@ +SUCCESS # <- GT4500 +FAIL # <- TORPEDO \ No newline at end of file diff --git a/test-data/output-2.txt b/test-data/output-2.txt new file mode 100644 index 0000000..0552b31 --- /dev/null +++ b/test-data/output-2.txt @@ -0,0 +1,3 @@ +SUCCESS +SUCCESS # <- TORPEDO +FAIL # <- TORPEDO \ No newline at end of file diff --git a/test-data/output-3.txt b/test-data/output-3.txt new file mode 100644 index 0000000..9f4ea83 --- /dev/null +++ b/test-data/output-3.txt @@ -0,0 +1 @@ +usage: GT4500,,,, \ No newline at end of file diff --git a/test-data/output-4.txt b/test-data/output-4.txt new file mode 100644 index 0000000..d684e91 --- /dev/null +++ b/test-data/output-4.txt @@ -0,0 +1 @@ +Unknown command: '1' \ No newline at end of file diff --git a/test-data/output-5.txt b/test-data/output-5.txt new file mode 100644 index 0000000..c3b5849 --- /dev/null +++ b/test-data/output-5.txt @@ -0,0 +1,2 @@ +SUCCESS +Unknown firing mode: 'A' \ No newline at end of file From 4d1d603412cecb97f9d780fe8a117e43b4eea096 Mon Sep 17 00:00:00 2001 From: unknown <176206@bme.hu> Date: Wed, 29 Oct 2025 17:15:56 +0100 Subject: [PATCH 2/2] Tests_2 --- test-data/input-2.txt | 3 +++ test-data/output-2.txt | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test-data/input-2.txt b/test-data/input-2.txt index 58f2c81..6c50fed 100644 --- a/test-data/input-2.txt +++ b/test-data/input-2.txt @@ -1,3 +1,6 @@ GT4500,1,0,0,0 TORPEDO,SINGLE +TORPEDO,SINGLE +GT4500,0,0,1,0 +TORPEDO,SINGLE TORPEDO,SINGLE \ No newline at end of file diff --git a/test-data/output-2.txt b/test-data/output-2.txt index 0552b31..c031f86 100644 --- a/test-data/output-2.txt +++ b/test-data/output-2.txt @@ -1,3 +1,6 @@ SUCCESS SUCCESS # <- TORPEDO -FAIL # <- TORPEDO \ No newline at end of file +FAIL # <- TORPEDO +SUCCESS +SUCCESS +FAIL \ No newline at end of file