diff options
| author | Abigail <abigail@abigail.be> | 2021-03-15 19:37:26 +0100 |
|---|---|---|
| committer | Abigail <abigail@abigail.be> | 2021-03-15 20:21:50 +0100 |
| commit | 3cdcee087aee807f269bfd8765fab79f214a7f58 (patch) | |
| tree | cd94b90aa91d04a7ee8618e11508a44cadcc241c /challenge-104/abigail/t | |
| parent | d4c8dac6653cf637f7f3791d2e2f358af9bf0671 (diff) | |
| download | perlweeklychallenge-club-3cdcee087aee807f269bfd8765fab79f214a7f58.tar.gz perlweeklychallenge-club-3cdcee087aee807f269bfd8765fab79f214a7f58.tar.bz2 perlweeklychallenge-club-3cdcee087aee807f269bfd8765fab79f214a7f58.zip | |
Test cases for week 104, part 2
Diffstat (limited to 'challenge-104/abigail/t')
55 files changed, 216 insertions, 0 deletions
diff --git a/challenge-104/abigail/t/ctest.ini b/challenge-104/abigail/t/ctest.ini index 18f469bf09..493973a0f9 100644 --- a/challenge-104/abigail/t/ctest.ini +++ b/challenge-104/abigail/t/ctest.ini @@ -1,5 +1,32 @@ [names]
1-1 = Fixed output
+2-1 = Moves 1, 1, 1
+2-2 = Moves 1, 1, 2
+2-3 = Moves 1, 1, 3
+2-4 = Moves 1, 2, 1
+2-5 = Moves 1, 2, 2
+2-6 = Moves 1, 2, 3
+2-7 = Moves 1, 3, 1
+2-8 = Moves 1, 3, 2
+2-9 = Moves 1, 3, 3
+2-10 = Moves 2, 1, 1
+2-11 = Moves 2, 1, 2
+2-12 = Moves 2, 1, 3
+2-13 = Moves 2, 2, 1
+2-14 = Moves 2, 2, 2
+2-15 = Moves 2, 2, 3
+2-16 = Moves 2, 3, 1
+2-17 = Moves 2, 3, 2
+2-18 = Moves 2, 3, 3
+2-19 = Moves 3, 1, 1
+2-20 = Moves 3, 1, 2
+2-21 = Moves 3, 1, 3
+2-22 = Moves 3, 2, 1
+2-23 = Moves 3, 2, 2
+2-24 = Moves 3, 2, 3
+2-25 = Moves 3, 3, 1
+2-26 = Moves 3, 3, 2
+2-27 = Moves 3, 3, 3
[1-1]
no_input = 1
diff --git a/challenge-104/abigail/t/input-2-1 b/challenge-104/abigail/t/input-2-1 new file mode 100644 index 0000000000..e8183f05f5 --- /dev/null +++ b/challenge-104/abigail/t/input-2-1 @@ -0,0 +1,3 @@ +1 +1 +1 diff --git a/challenge-104/abigail/t/input-2-10 b/challenge-104/abigail/t/input-2-10 new file mode 100644 index 0000000000..afe234be09 --- /dev/null +++ b/challenge-104/abigail/t/input-2-10 @@ -0,0 +1,3 @@ +2 +1 +1 diff --git a/challenge-104/abigail/t/input-2-11 b/challenge-104/abigail/t/input-2-11 new file mode 100644 index 0000000000..5357a4ab72 --- /dev/null +++ b/challenge-104/abigail/t/input-2-11 @@ -0,0 +1,3 @@ +2 +1 +2 diff --git a/challenge-104/abigail/t/input-2-12 b/challenge-104/abigail/t/input-2-12 new file mode 100644 index 0000000000..b52e52d0a5 --- /dev/null +++ b/challenge-104/abigail/t/input-2-12 @@ -0,0 +1,3 @@ +2 +1 +3 diff --git a/challenge-104/abigail/t/input-2-13 b/challenge-104/abigail/t/input-2-13 new file mode 100644 index 0000000000..19920de3d3 --- /dev/null +++ b/challenge-104/abigail/t/input-2-13 @@ -0,0 +1,3 @@ +2 +2 +1 diff --git a/challenge-104/abigail/t/input-2-14 b/challenge-104/abigail/t/input-2-14 new file mode 100644 index 0000000000..083edaac24 --- /dev/null +++ b/challenge-104/abigail/t/input-2-14 @@ -0,0 +1,3 @@ +2 +2 +2 diff --git a/challenge-104/abigail/t/input-2-15 b/challenge-104/abigail/t/input-2-15 new file mode 100644 index 0000000000..179d8a7593 --- /dev/null +++ b/challenge-104/abigail/t/input-2-15 @@ -0,0 +1,3 @@ +2 +2 +3 diff --git a/challenge-104/abigail/t/input-2-16 b/challenge-104/abigail/t/input-2-16 new file mode 100644 index 0000000000..17435e586d --- /dev/null +++ b/challenge-104/abigail/t/input-2-16 @@ -0,0 +1,3 @@ +2 +3 +1 diff --git a/challenge-104/abigail/t/input-2-17 b/challenge-104/abigail/t/input-2-17 new file mode 100644 index 0000000000..38821032aa --- /dev/null +++ b/challenge-104/abigail/t/input-2-17 @@ -0,0 +1,3 @@ +2 +3 +2 diff --git a/challenge-104/abigail/t/input-2-18 b/challenge-104/abigail/t/input-2-18 new file mode 100644 index 0000000000..4e8a2de2db --- /dev/null +++ b/challenge-104/abigail/t/input-2-18 @@ -0,0 +1,3 @@ +2 +3 +3 diff --git a/challenge-104/abigail/t/input-2-19 b/challenge-104/abigail/t/input-2-19 new file mode 100644 index 0000000000..8bd111e041 --- /dev/null +++ b/challenge-104/abigail/t/input-2-19 @@ -0,0 +1,3 @@ +3 +1 +1 diff --git a/challenge-104/abigail/t/input-2-2 b/challenge-104/abigail/t/input-2-2 new file mode 100644 index 0000000000..33280629d4 --- /dev/null +++ b/challenge-104/abigail/t/input-2-2 @@ -0,0 +1,3 @@ +1 +1 +2 diff --git a/challenge-104/abigail/t/input-2-20 b/challenge-104/abigail/t/input-2-20 new file mode 100644 index 0000000000..0571a2e15a --- /dev/null +++ b/challenge-104/abigail/t/input-2-20 @@ -0,0 +1,3 @@ +3 +1 +2 diff --git a/challenge-104/abigail/t/input-2-21 b/challenge-104/abigail/t/input-2-21 new file mode 100644 index 0000000000..7f9e236730 --- /dev/null +++ b/challenge-104/abigail/t/input-2-21 @@ -0,0 +1,3 @@ +3 +1 +3 diff --git a/challenge-104/abigail/t/input-2-22 b/challenge-104/abigail/t/input-2-22 new file mode 100644 index 0000000000..2d6976f9b5 --- /dev/null +++ b/challenge-104/abigail/t/input-2-22 @@ -0,0 +1,3 @@ +3 +2 +1 diff --git a/challenge-104/abigail/t/input-2-23 b/challenge-104/abigail/t/input-2-23 new file mode 100644 index 0000000000..a3cb04507b --- /dev/null +++ b/challenge-104/abigail/t/input-2-23 @@ -0,0 +1,3 @@ +3 +2 +2 diff --git a/challenge-104/abigail/t/input-2-24 b/challenge-104/abigail/t/input-2-24 new file mode 100644 index 0000000000..61150aca43 --- /dev/null +++ b/challenge-104/abigail/t/input-2-24 @@ -0,0 +1,3 @@ +3 +2 +3 diff --git a/challenge-104/abigail/t/input-2-25 b/challenge-104/abigail/t/input-2-25 new file mode 100644 index 0000000000..737798c36a --- /dev/null +++ b/challenge-104/abigail/t/input-2-25 @@ -0,0 +1,3 @@ +3 +3 +1 diff --git a/challenge-104/abigail/t/input-2-26 b/challenge-104/abigail/t/input-2-26 new file mode 100644 index 0000000000..c9a30dbc84 --- /dev/null +++ b/challenge-104/abigail/t/input-2-26 @@ -0,0 +1,3 @@ +3 +3 +2 diff --git a/challenge-104/abigail/t/input-2-27 b/challenge-104/abigail/t/input-2-27 new file mode 100644 index 0000000000..1f242fa6f0 --- /dev/null +++ b/challenge-104/abigail/t/input-2-27 @@ -0,0 +1,3 @@ +3 +3 +3 diff --git a/challenge-104/abigail/t/input-2-3 b/challenge-104/abigail/t/input-2-3 new file mode 100644 index 0000000000..5a3a1ad4e1 --- /dev/null +++ b/challenge-104/abigail/t/input-2-3 @@ -0,0 +1,3 @@ +1 +1 +3 diff --git a/challenge-104/abigail/t/input-2-4 b/challenge-104/abigail/t/input-2-4 new file mode 100644 index 0000000000..e13c5bfaa6 --- /dev/null +++ b/challenge-104/abigail/t/input-2-4 @@ -0,0 +1,3 @@ +1 +2 +1 diff --git a/challenge-104/abigail/t/input-2-5 b/challenge-104/abigail/t/input-2-5 new file mode 100644 index 0000000000..2ca3cd52fc --- /dev/null +++ b/challenge-104/abigail/t/input-2-5 @@ -0,0 +1,3 @@ +1 +2 +2 diff --git a/challenge-104/abigail/t/input-2-6 b/challenge-104/abigail/t/input-2-6 new file mode 100644 index 0000000000..01e79c32a8 --- /dev/null +++ b/challenge-104/abigail/t/input-2-6 @@ -0,0 +1,3 @@ +1 +2 +3 diff --git a/challenge-104/abigail/t/input-2-7 b/challenge-104/abigail/t/input-2-7 new file mode 100644 index 0000000000..39a859353d --- /dev/null +++ b/challenge-104/abigail/t/input-2-7 @@ -0,0 +1,3 @@ +1 +3 +1 diff --git a/challenge-104/abigail/t/input-2-8 b/challenge-104/abigail/t/input-2-8 new file mode 100644 index 0000000000..a1d0ff9b7d --- /dev/null +++ b/challenge-104/abigail/t/input-2-8 @@ -0,0 +1,3 @@ +1 +3 +2 diff --git a/challenge-104/abigail/t/input-2-9 b/challenge-104/abigail/t/input-2-9 new file mode 100644 index 0000000000..6b51ef3f35 --- /dev/null +++ b/challenge-104/abigail/t/input-2-9 @@ -0,0 +1,3 @@ +1 +3 +3 diff --git a/challenge-104/abigail/t/output-2-1.exp b/challenge-104/abigail/t/output-2-1.exp new file mode 100644 index 0000000000..5c7665f6c2 --- /dev/null +++ b/challenge-104/abigail/t/output-2-1.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 3 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-10.exp b/challenge-104/abigail/t/output-2-10.exp new file mode 100644 index 0000000000..d6ea856a65 --- /dev/null +++ b/challenge-104/abigail/t/output-2-10.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 3 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-11.exp b/challenge-104/abigail/t/output-2-11.exp new file mode 100644 index 0000000000..b173a5d614 --- /dev/null +++ b/challenge-104/abigail/t/output-2-11.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 2 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-12.exp b/challenge-104/abigail/t/output-2-12.exp new file mode 100644 index 0000000000..8ca445a275 --- /dev/null +++ b/challenge-104/abigail/t/output-2-12.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 1 token +Computer wins diff --git a/challenge-104/abigail/t/output-2-13.exp b/challenge-104/abigail/t/output-2-13.exp new file mode 100644 index 0000000000..dbfca4064b --- /dev/null +++ b/challenge-104/abigail/t/output-2-13.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 3 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-14.exp b/challenge-104/abigail/t/output-2-14.exp new file mode 100644 index 0000000000..9f283707ce --- /dev/null +++ b/challenge-104/abigail/t/output-2-14.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 2 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-15.exp b/challenge-104/abigail/t/output-2-15.exp new file mode 100644 index 0000000000..a83bf5843d --- /dev/null +++ b/challenge-104/abigail/t/output-2-15.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 1 token +Computer wins diff --git a/challenge-104/abigail/t/output-2-16.exp b/challenge-104/abigail/t/output-2-16.exp new file mode 100644 index 0000000000..61fb8482aa --- /dev/null +++ b/challenge-104/abigail/t/output-2-16.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 1 token +How many tokens do you take? ( 4 tokens are left) Computer takes 3 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-17.exp b/challenge-104/abigail/t/output-2-17.exp new file mode 100644 index 0000000000..8e29cfbab5 --- /dev/null +++ b/challenge-104/abigail/t/output-2-17.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 1 token +How many tokens do you take? ( 4 tokens are left) Computer takes 2 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-18.exp b/challenge-104/abigail/t/output-2-18.exp new file mode 100644 index 0000000000..ff94accc35 --- /dev/null +++ b/challenge-104/abigail/t/output-2-18.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 1 token +How many tokens do you take? ( 4 tokens are left) Computer takes 1 token +Computer wins diff --git a/challenge-104/abigail/t/output-2-19.exp b/challenge-104/abigail/t/output-2-19.exp new file mode 100644 index 0000000000..1e685befe6 --- /dev/null +++ b/challenge-104/abigail/t/output-2-19.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 1 token +How many tokens do you take? ( 8 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 3 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-2.exp b/challenge-104/abigail/t/output-2-2.exp new file mode 100644 index 0000000000..6690435651 --- /dev/null +++ b/challenge-104/abigail/t/output-2-2.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 2 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-20.exp b/challenge-104/abigail/t/output-2-20.exp new file mode 100644 index 0000000000..3b266c8d3b --- /dev/null +++ b/challenge-104/abigail/t/output-2-20.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 1 token +How many tokens do you take? ( 8 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 2 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-21.exp b/challenge-104/abigail/t/output-2-21.exp new file mode 100644 index 0000000000..67f8c7cbf5 --- /dev/null +++ b/challenge-104/abigail/t/output-2-21.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 1 token +How many tokens do you take? ( 8 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 1 token +Computer wins diff --git a/challenge-104/abigail/t/output-2-22.exp b/challenge-104/abigail/t/output-2-22.exp new file mode 100644 index 0000000000..024fd744e6 --- /dev/null +++ b/challenge-104/abigail/t/output-2-22.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 1 token +How many tokens do you take? ( 8 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 3 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-23.exp b/challenge-104/abigail/t/output-2-23.exp new file mode 100644 index 0000000000..0f37b22229 --- /dev/null +++ b/challenge-104/abigail/t/output-2-23.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 1 token +How many tokens do you take? ( 8 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 2 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-24.exp b/challenge-104/abigail/t/output-2-24.exp new file mode 100644 index 0000000000..0318ed5d08 --- /dev/null +++ b/challenge-104/abigail/t/output-2-24.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 1 token +How many tokens do you take? ( 8 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 1 token +Computer wins diff --git a/challenge-104/abigail/t/output-2-25.exp b/challenge-104/abigail/t/output-2-25.exp new file mode 100644 index 0000000000..71621a1d2b --- /dev/null +++ b/challenge-104/abigail/t/output-2-25.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 1 token +How many tokens do you take? ( 8 tokens are left) Computer takes 1 token +How many tokens do you take? ( 4 tokens are left) Computer takes 3 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-26.exp b/challenge-104/abigail/t/output-2-26.exp new file mode 100644 index 0000000000..e020f8bb55 --- /dev/null +++ b/challenge-104/abigail/t/output-2-26.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 1 token +How many tokens do you take? ( 8 tokens are left) Computer takes 1 token +How many tokens do you take? ( 4 tokens are left) Computer takes 2 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-27.exp b/challenge-104/abigail/t/output-2-27.exp new file mode 100644 index 0000000000..51bbb6de67 --- /dev/null +++ b/challenge-104/abigail/t/output-2-27.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 1 token +How many tokens do you take? ( 8 tokens are left) Computer takes 1 token +How many tokens do you take? ( 4 tokens are left) Computer takes 1 token +Computer wins diff --git a/challenge-104/abigail/t/output-2-3.exp b/challenge-104/abigail/t/output-2-3.exp new file mode 100644 index 0000000000..9407326d94 --- /dev/null +++ b/challenge-104/abigail/t/output-2-3.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 1 token +Computer wins diff --git a/challenge-104/abigail/t/output-2-4.exp b/challenge-104/abigail/t/output-2-4.exp new file mode 100644 index 0000000000..e60e7c0485 --- /dev/null +++ b/challenge-104/abigail/t/output-2-4.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 3 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-5.exp b/challenge-104/abigail/t/output-2-5.exp new file mode 100644 index 0000000000..6aa2094dd7 --- /dev/null +++ b/challenge-104/abigail/t/output-2-5.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 2 tokens +Computer wins diff --git a/challenge-104/abigail/t/output-2-6.exp b/challenge-104/abigail/t/output-2-6.exp new file mode 100644 index 0000000000..3d0dda72ed --- /dev/null +++ b/challenge-104/abigail/t/output-2-6.exp @@ -0,0 +1,4 @@ +How many tokens do you take? (12 tokens are left) Computer takes 3 tokens +How many tokens do you take? ( 8 tokens are left) Computer takes 2 tokens +How many tokens do you take? ( 4 tokens are left) Computer takes 1 token +Computer wins |
