From 9e18662f3022f8f0e9c9b8cb5113bcd0d1096e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1rp=C3=A1ti=20M=C3=A1rk?= <263948114+marki-8@users.noreply.github.com> Date: Tue, 27 Oct 2026 22:27:50 +0100 Subject: [PATCH 1/3] Created tests --- test-data/input-1.txt | 2 ++ test-data/input-2.txt | 3 +++ test-data/input-3.txt | 2 ++ test-data/input-4.txt | 2 ++ test-data/output-1.txt | 2 ++ test-data/output-2.txt | 3 +++ test-data/output-3.txt | 2 ++ test-data/output-4.txt | 2 ++ 8 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/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 diff --git a/test-data/input-1.txt b/test-data/input-1.txt new file mode 100644 index 0000000..1145503 --- /dev/null +++ b/test-data/input-1.txt @@ -0,0 +1,2 @@ +GT4500,10,0,10,0 +TORPEDO,SINGLE # elso loves, az elsodlegesbol kell loni \ 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..2ee39a3 --- /dev/null +++ b/test-data/input-2.txt @@ -0,0 +1,3 @@ +GT4500,10,0,10,0 +TORPEDO,SINGLE # 1. loves -> elso tarolo +TORPEDO,SINGLE # 2. loves -> masodik tarolo \ 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..8063b5e --- /dev/null +++ b/test-data/input-3.txt @@ -0,0 +1,2 @@ +GT4500,0,0,10,0 +TORPEDO,SINGLE # elso tarolo ures -> masodigbol lo \ 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..fb77699 --- /dev/null +++ b/test-data/input-4.txt @@ -0,0 +1,2 @@ +GT4500,10,0,10,0 +TORPEDO,ALL # mindket tarolobol egyszerre \ 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..04970f5 --- /dev/null +++ b/test-data/output-1.txt @@ -0,0 +1,2 @@ +SUCCESS +SUCCESS \ 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..8ff0c12 --- /dev/null +++ b/test-data/output-2.txt @@ -0,0 +1,3 @@ +SUCCESS +SUCCESS +SUCCESS \ 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..04970f5 --- /dev/null +++ b/test-data/output-3.txt @@ -0,0 +1,2 @@ +SUCCESS +SUCCESS \ 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..04970f5 --- /dev/null +++ b/test-data/output-4.txt @@ -0,0 +1,2 @@ +SUCCESS +SUCCESS \ No newline at end of file From d86a0c77d3660e8a06249305ce7289b26f9e943f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1rp=C3=A1ti=20M=C3=A1rk?= <263948114+marki-8@users.noreply.github.com> Date: Tue, 27 Oct 2026 22:46:46 +0100 Subject: [PATCH 2/3] Expanded test coverage --- test-data/input-5.txt | 4 ++++ test-data/input-6.txt | 2 ++ test-data/input-7.txt | 2 ++ test-data/output-5.txt | 4 ++++ test-data/output-6.txt | 2 ++ test-data/output-7.txt | 2 ++ 6 files changed, 16 insertions(+) create mode 100644 test-data/input-5.txt create mode 100644 test-data/input-6.txt create mode 100644 test-data/input-7.txt create mode 100644 test-data/output-5.txt create mode 100644 test-data/output-6.txt create mode 100644 test-data/output-7.txt diff --git a/test-data/input-5.txt b/test-data/input-5.txt new file mode 100644 index 0000000..efb8f56 --- /dev/null +++ b/test-data/input-5.txt @@ -0,0 +1,4 @@ +GT4500,2,0,0,0 +TORPEDO,SINGLE # 1. loves -> elsodleges +TORPEDO,SINGLE # 2. loves -> masodlagos ures, ujra elsodlegesbol +TORPEDO,SINGLE # 3. loves -> mar mindketto ures -> failure \ No newline at end of file diff --git a/test-data/input-6.txt b/test-data/input-6.txt new file mode 100644 index 0000000..390c83d --- /dev/null +++ b/test-data/input-6.txt @@ -0,0 +1,2 @@ +GT4500,0,0,0,0 +TORPEDO,SINGLE # mindketto ures SINGLE modban -> failure \ No newline at end of file diff --git a/test-data/input-7.txt b/test-data/input-7.txt new file mode 100644 index 0000000..23fdb74 --- /dev/null +++ b/test-data/input-7.txt @@ -0,0 +1,2 @@ +GT4500,0,0,0,0 +TORPEDO,ALL # mindketto ures ALL modban -> failure \ 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..ec0ca35 --- /dev/null +++ b/test-data/output-5.txt @@ -0,0 +1,4 @@ +SUCCESS +SUCCESS +SUCCESS +FAIL \ No newline at end of file diff --git a/test-data/output-6.txt b/test-data/output-6.txt new file mode 100644 index 0000000..5d052da --- /dev/null +++ b/test-data/output-6.txt @@ -0,0 +1,2 @@ +SUCCESS +FAIL \ No newline at end of file diff --git a/test-data/output-7.txt b/test-data/output-7.txt new file mode 100644 index 0000000..5d052da --- /dev/null +++ b/test-data/output-7.txt @@ -0,0 +1,2 @@ +SUCCESS +FAIL \ No newline at end of file From c93eeb9dd99f7107fc47713bfc777fa3e4d4b0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1rp=C3=A1ti=20M=C3=A1rk?= <263948114+marki-8@users.noreply.github.com> Date: Tue, 27 Oct 2026 23:02:03 +0100 Subject: [PATCH 3/3] Maximized the test coverage --- test-data/input-7.txt | 3 ++- test-data/output-7.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test-data/input-7.txt b/test-data/input-7.txt index 23fdb74..4bdb04d 100644 --- a/test-data/input-7.txt +++ b/test-data/input-7.txt @@ -1,2 +1,3 @@ -GT4500,0,0,0,0 +GT4500,0,0,1,0 +TORPEDO,ALL # elsodleges ures, masodlagos lo TORPEDO,ALL # mindketto ures ALL modban -> failure \ No newline at end of file diff --git a/test-data/output-7.txt b/test-data/output-7.txt index 5d052da..47da1a2 100644 --- a/test-data/output-7.txt +++ b/test-data/output-7.txt @@ -1,2 +1,3 @@ SUCCESS +SUCCESS FAIL \ No newline at end of file