aboutsummaryrefslogtreecommitdiff
path: root/challenge-099/abigail
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2021-02-08 10:15:52 +0100
committerAbigail <abigail@abigail.be>2021-02-08 10:15:52 +0100
commit330373fbc4da91a20e8333b3dd377efa57f2ff61 (patch)
tree7c30efd6f0bce6f7513eababb1dbce531e19078b /challenge-099/abigail
parent54f58071df592db59455da4ee4823f91dcf297cc (diff)
downloadperlweeklychallenge-club-330373fbc4da91a20e8333b3dd377efa57f2ff61.tar.gz
perlweeklychallenge-club-330373fbc4da91a20e8333b3dd377efa57f2ff61.tar.bz2
perlweeklychallenge-club-330373fbc4da91a20e8333b3dd377efa57f2ff61.zip
Example test cases.
Diffstat (limited to 'challenge-099/abigail')
-rw-r--r--challenge-099/abigail/README.md7
-rw-r--r--challenge-099/abigail/t/ctest.ini2
-rw-r--r--challenge-099/abigail/t/input-1-14
-rw-r--r--challenge-099/abigail/t/output-1-1.exp4
4 files changed, 14 insertions, 3 deletions
diff --git a/challenge-099/abigail/README.md b/challenge-099/abigail/README.md
index d50e863756..ed1861f17e 100644
--- a/challenge-099/abigail/README.md
+++ b/challenge-099/abigail/README.md
@@ -17,27 +17,28 @@ Input: $S = "abcde" $P = "a*e"
Output: 1
~~~~
-
#### Example 2
~~~~
Input: $S = "abcde" $P = "a*d"
Output: 0
~~~~
-
#### Example 3
~~~~
Input: $S = "abcde" $P = "?b*d"
Output: 0
~~~~
-
#### Example 4
~~~~
Input: $S = "abcde" $P = "a*c?e"
Output: 1
~~~~
+### Notes
+* We will be reading from standard input, one task perl line. We will
+ assume the string and pattern are separated by a space.
+
## [Unique Subsequence](https://perlweeklychallenge.org/blog/perl-weekly-challenge-099/#TASK2)
diff --git a/challenge-099/abigail/t/ctest.ini b/challenge-099/abigail/t/ctest.ini
new file mode 100644
index 0000000000..449c47a05c
--- /dev/null
+++ b/challenge-099/abigail/t/ctest.ini
@@ -0,0 +1,2 @@
+[names]
+1-1 = Given examples
diff --git a/challenge-099/abigail/t/input-1-1 b/challenge-099/abigail/t/input-1-1
new file mode 100644
index 0000000000..45d152feb4
--- /dev/null
+++ b/challenge-099/abigail/t/input-1-1
@@ -0,0 +1,4 @@
+abcde a*e
+abcde a*d
+abcde ?b*d
+abcde a*c?e
diff --git a/challenge-099/abigail/t/output-1-1.exp b/challenge-099/abigail/t/output-1-1.exp
new file mode 100644
index 0000000000..680eb502aa
--- /dev/null
+++ b/challenge-099/abigail/t/output-1-1.exp
@@ -0,0 +1,4 @@
+1
+0
+0
+1