aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.freedom.nl>2022-02-07 11:44:50 +0100
committerAbigail <abigail@abigail.freedom.nl>2022-02-07 11:44:50 +0100
commitda5ece1804223a51722105d1e269fb3d78c863c6 (patch)
treec01d3e62c7156caecf62378ab34cc21f6944450d
parentd4fec6b7157921fd3a1f1178f0899696c4d405d5 (diff)
downloadperlweeklychallenge-club-da5ece1804223a51722105d1e269fb3d78c863c6.tar.gz
perlweeklychallenge-club-da5ece1804223a51722105d1e269fb3d78c863c6.tar.bz2
perlweeklychallenge-club-da5ece1804223a51722105d1e269fb3d78c863c6.zip
Week 151: Tests
-rw-r--r--challenge-151/abigail/t/ctest.ini9
-rw-r--r--challenge-151/abigail/t/input-1-12
-rw-r--r--challenge-151/abigail/t/input-2-12
-rw-r--r--challenge-151/abigail/t/output-1-1.exp2
-rw-r--r--challenge-151/abigail/t/output-2-1.exp2
5 files changed, 17 insertions, 0 deletions
diff --git a/challenge-151/abigail/t/ctest.ini b/challenge-151/abigail/t/ctest.ini
new file mode 100644
index 0000000000..0a8cb97d18
--- /dev/null
+++ b/challenge-151/abigail/t/ctest.ini
@@ -0,0 +1,9 @@
+#
+# Configuration file for running tests, using ctest.
+# See https://github.com/Abigail/Misc/blob/master/ctest
+#
+
+[names]
+1-1 = Given Examples
+2-1 = Given Examples
+
diff --git a/challenge-151/abigail/t/input-1-1 b/challenge-151/abigail/t/input-1-1
new file mode 100644
index 0000000000..61fb9ed0dc
--- /dev/null
+++ b/challenge-151/abigail/t/input-1-1
@@ -0,0 +1,2 @@
+1 | 2 3 | 4 5
+1 | 2 3 | 4 * * 5 | * 6
diff --git a/challenge-151/abigail/t/input-2-1 b/challenge-151/abigail/t/input-2-1
new file mode 100644
index 0000000000..14b0f0f2c6
--- /dev/null
+++ b/challenge-151/abigail/t/input-2-1
@@ -0,0 +1,2 @@
+2 4 5
+4 2 3 6 5 3
diff --git a/challenge-151/abigail/t/output-1-1.exp b/challenge-151/abigail/t/output-1-1.exp
new file mode 100644
index 0000000000..4792e70f33
--- /dev/null
+++ b/challenge-151/abigail/t/output-1-1.exp
@@ -0,0 +1,2 @@
+2
+3
diff --git a/challenge-151/abigail/t/output-2-1.exp b/challenge-151/abigail/t/output-2-1.exp
new file mode 100644
index 0000000000..dd80f6a91d
--- /dev/null
+++ b/challenge-151/abigail/t/output-2-1.exp
@@ -0,0 +1,2 @@
+7
+13