aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2021-11-15 19:39:28 +0100
committerAbigail <abigail@abigail.be>2021-11-15 19:39:28 +0100
commit83b91177f7b1aced78863b336bd236a40f7e1aef (patch)
tree8d5cb0366c871b5e7458bcb1c61ab16d6604f9dd
parent253e59bd48e295150f8dd52a89e77933e34db7d8 (diff)
downloadperlweeklychallenge-club-83b91177f7b1aced78863b336bd236a40f7e1aef.tar.gz
perlweeklychallenge-club-83b91177f7b1aced78863b336bd236a40f7e1aef.tar.bz2
perlweeklychallenge-club-83b91177f7b1aced78863b336bd236a40f7e1aef.zip
Tests for week 139
-rw-r--r--challenge-139/abigail/t/ctest.ini11
-rw-r--r--challenge-139/abigail/t/input-1-12
-rw-r--r--challenge-139/abigail/t/input-2-10
-rw-r--r--challenge-139/abigail/t/output-1-1.exp2
-rw-r--r--challenge-139/abigail/t/output-2-1.exp5
5 files changed, 20 insertions, 0 deletions
diff --git a/challenge-139/abigail/t/ctest.ini b/challenge-139/abigail/t/ctest.ini
new file mode 100644
index 0000000000..01d41b9c6f
--- /dev/null
+++ b/challenge-139/abigail/t/ctest.ini
@@ -0,0 +1,11 @@
+#
+# Configuration file for running tests, using ctest.
+# See https://github.com/Abigail/Misc/blob/master/ctest
+#
+
+[names]
+1-1 = Given examples
+2-1 = Fixed output
+
+[2-1]
+no_input = 1
diff --git a/challenge-139/abigail/t/input-1-1 b/challenge-139/abigail/t/input-1-1
new file mode 100644
index 0000000000..8af9f0fa85
--- /dev/null
+++ b/challenge-139/abigail/t/input-1-1
@@ -0,0 +1,2 @@
+1 2 3 4 5
+1 3 2 4 5
diff --git a/challenge-139/abigail/t/input-2-1 b/challenge-139/abigail/t/input-2-1
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/challenge-139/abigail/t/input-2-1
diff --git a/challenge-139/abigail/t/output-1-1.exp b/challenge-139/abigail/t/output-1-1.exp
new file mode 100644
index 0000000000..b261da18d5
--- /dev/null
+++ b/challenge-139/abigail/t/output-1-1.exp
@@ -0,0 +1,2 @@
+1
+0
diff --git a/challenge-139/abigail/t/output-2-1.exp b/challenge-139/abigail/t/output-2-1.exp
new file mode 100644
index 0000000000..30d54fc879
--- /dev/null
+++ b/challenge-139/abigail/t/output-2-1.exp
@@ -0,0 +1,5 @@
+7
+17
+19
+23
+29