aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2021-07-26 15:13:23 +0200
committerAbigail <abigail@abigail.be>2021-07-26 16:32:52 +0200
commitcb35258c4b2e7de233d859e068edea04ca80b584 (patch)
tree7627f976596a45579d74d6de46db48755088b2ba
parent689f8d95e8740cd40d4b7cda2ea94b9889496314 (diff)
downloadperlweeklychallenge-club-cb35258c4b2e7de233d859e068edea04ca80b584.tar.gz
perlweeklychallenge-club-cb35258c4b2e7de233d859e068edea04ca80b584.tar.bz2
perlweeklychallenge-club-cb35258c4b2e7de233d859e068edea04ca80b584.zip
Tests for week 123
-rw-r--r--challenge-123/abigail/t/ctest.ini8
-rw-r--r--challenge-123/abigail/t/input-1-12
-rw-r--r--challenge-123/abigail/t/input-2-12
-rw-r--r--challenge-123/abigail/t/output-1-1.exp2
-rw-r--r--challenge-123/abigail/t/output-2-1.exp2
5 files changed, 16 insertions, 0 deletions
diff --git a/challenge-123/abigail/t/ctest.ini b/challenge-123/abigail/t/ctest.ini
new file mode 100644
index 0000000000..527781acbb
--- /dev/null
+++ b/challenge-123/abigail/t/ctest.ini
@@ -0,0 +1,8 @@
+#
+# 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-123/abigail/t/input-1-1 b/challenge-123/abigail/t/input-1-1
new file mode 100644
index 0000000000..1831e2e66c
--- /dev/null
+++ b/challenge-123/abigail/t/input-1-1
@@ -0,0 +1,2 @@
+7
+10
diff --git a/challenge-123/abigail/t/input-2-1 b/challenge-123/abigail/t/input-2-1
new file mode 100644
index 0000000000..cdeb69af2f
--- /dev/null
+++ b/challenge-123/abigail/t/input-2-1
@@ -0,0 +1,2 @@
+10 20 20 20 20 10 10 10
+12 24 16 10 20 12 18 16
diff --git a/challenge-123/abigail/t/output-1-1.exp b/challenge-123/abigail/t/output-1-1.exp
new file mode 100644
index 0000000000..60d24f7251
--- /dev/null
+++ b/challenge-123/abigail/t/output-1-1.exp
@@ -0,0 +1,2 @@
+8
+12
diff --git a/challenge-123/abigail/t/output-2-1.exp b/challenge-123/abigail/t/output-2-1.exp
new file mode 100644
index 0000000000..b261da18d5
--- /dev/null
+++ b/challenge-123/abigail/t/output-2-1.exp
@@ -0,0 +1,2 @@
+1
+0