This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests.toml file for all exercises with canonical data
- Loading branch information
1 parent
6fa022c
commit c08accc
Showing
20 changed files
with
803 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[canonical-tests] | ||
|
||
# no matches | ||
"dd40c4d2-3c8b-44e5-992a-f42b393ec373" = true | ||
|
||
# detects two anagrams | ||
"b3cca662-f50a-489e-ae10-ab8290a09bdc" = true | ||
|
||
# does not detect anagram subsets | ||
"a27558ee-9ba0-4552-96b1-ecf665b06556" = true | ||
|
||
# detects anagram | ||
"64cd4584-fc15-4781-b633-3d814c4941a4" = true | ||
|
||
# detects three anagrams | ||
"99c91beb-838f-4ccd-b123-935139917283" = true | ||
|
||
# detects multiple anagrams with different case | ||
"78487770-e258-4e1f-a646-8ece10950d90" = true | ||
|
||
# does not detect non-anagrams with identical checksum | ||
"1d0ab8aa-362f-49b7-9902-3d0c668d557b" = true | ||
|
||
# detects anagrams case-insensitively | ||
"9e632c0b-c0b1-4804-8cc1-e295dea6d8a8" = true | ||
|
||
# detects anagrams using case-insensitive subject | ||
"b248e49f-0905-48d2-9c8d-bd02d8c3e392" = true | ||
|
||
# detects anagrams using case-insensitive possible matches | ||
"f367325c-78ec-411c-be76-e79047f4bd54" = true | ||
|
||
# does not detect an anagram if the original word is repeated | ||
"7cc195ad-e3c7-44ee-9fd2-d3c344806a2c" = true | ||
|
||
# anagrams must use all letters exactly once | ||
"9878a1c9-d6ea-4235-ae51-3ea2befd6842" = true | ||
|
||
# words are not anagrams of themselves (case-insensitive) | ||
"85757361-4535-45fd-ac0e-3810d40debc1" = true | ||
|
||
# words other than themselves can be anagrams | ||
"a0705568-628c-4b55-9798-82e4acde51ca" = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[canonical-tests] | ||
|
||
# Zero is an Armstrong number | ||
"c1ed103c-258d-45b2-be73-d8c6d9580c7b" = true | ||
|
||
# Single digit numbers are Armstrong numbers | ||
"579e8f03-9659-4b85-a1a2-d64350f6b17a" = true | ||
|
||
# There are no 2 digit Armstrong numbers | ||
"2d6db9dc-5bf8-4976-a90b-b2c2b9feba60" = true | ||
|
||
# Three digit number that is an Armstrong number | ||
"509c087f-e327-4113-a7d2-26a4e9d18283" = true | ||
|
||
# Three digit number that is not an Armstrong number | ||
"7154547d-c2ce-468d-b214-4cb953b870cf" = true | ||
|
||
# Four digit number that is an Armstrong number | ||
"6bac5b7b-42e9-4ecb-a8b0-4832229aa103" = true | ||
|
||
# Four digit number that is not an Armstrong number | ||
"eed4b331-af80-45b5-a80b-19c9ea444b2e" = true | ||
|
||
# Seven digit number that is an Armstrong number | ||
"f971ced7-8d68-4758-aea1-d4194900b864" = true | ||
|
||
# Seven digit number that is not an Armstrong number | ||
"7ee45d52-5d35-4fbd-b6f1-5c8cd8a67f18" = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[canonical-tests] | ||
|
||
# first generic verse | ||
"5a02fd08-d336-4607-8006-246fe6fa9fb0" = true | ||
|
||
# last generic verse | ||
"77299ca6-545e-4217-a9cc-606b342e0187" = true | ||
|
||
# verse with 2 bottles | ||
"102cbca0-b197-40fd-b548-e99609b06428" = true | ||
|
||
# verse with 1 bottle | ||
"b8ef9fce-960e-4d85-a0c9-980a04ec1972" = true | ||
|
||
# verse with 0 bottles | ||
"c59d4076-f671-4ee3-baaa-d4966801f90d" = true | ||
|
||
# first two verses | ||
"7e17c794-402d-4ca6-8f96-4d8f6ee1ec7e" = true | ||
|
||
# last three verses | ||
"949868e7-67e8-43d3-9bb4-69277fe020fb" = true | ||
|
||
# all verses | ||
"bc220626-126c-4e72-8df4-fddfc0c3e458" = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
[canonical-tests] | ||
|
||
# stating something | ||
"e162fead-606f-437a-a166-d051915cea8e" = true | ||
|
||
# shouting | ||
"73a966dc-8017-47d6-bb32-cf07d1a5fcd9" = true | ||
|
||
# shouting gibberish | ||
"d6c98afd-df35-4806-b55e-2c457c3ab748" = true | ||
|
||
# asking a question | ||
"8a2e771d-d6f1-4e3f-b6c6-b41495556e37" = true | ||
|
||
# asking a numeric question | ||
"81080c62-4e4d-4066-b30a-48d8d76920d9" = true | ||
|
||
# asking gibberish | ||
"2a02716d-685b-4e2e-a804-2adaf281c01e" = true | ||
|
||
# talking forcefully | ||
"c02f9179-ab16-4aa7-a8dc-940145c385f7" = true | ||
|
||
# using acronyms in regular speech | ||
"153c0e25-9bb5-4ec5-966e-598463658bcd" = true | ||
|
||
# forceful question | ||
"a5193c61-4a92-4f68-93e2-f554eb385ec6" = true | ||
|
||
# shouting numbers | ||
"a20e0c54-2224-4dde-8b10-bd2cdd4f61bc" = true | ||
|
||
# no letters | ||
"f7bc4b92-bdff-421e-a238-ae97f230ccac" = true | ||
|
||
# question with no letters | ||
"bb0011c5-cd52-4a5b-8bfb-a87b6283b0e2" = true | ||
|
||
# shouting with special characters | ||
"496143c8-1c31-4c01-8a08-88427af85c66" = true | ||
|
||
# shouting with no exclamation mark | ||
"e6793c1c-43bd-4b8d-bc11-499aea73925f" = true | ||
|
||
# statement containing question mark | ||
"aa8097cc-c548-4951-8856-14a404dd236a" = true | ||
|
||
# non-letters with question | ||
"9bfc677d-ea3a-45f2-be44-35bc8fa3753e" = true | ||
|
||
# prattling on | ||
"8608c508-f7de-4b17-985b-811878b3cf45" = true | ||
|
||
# silence | ||
"bc39f7c6-f543-41be-9a43-fd1c2f753fc0" = true | ||
|
||
# prolonged silence | ||
"d6c47565-372b-4b09-b1dd-c40552b8378b" = true | ||
|
||
# alternate silence | ||
"4428f28d-4100-4d85-a902-e5a78cb0ecd3" = true | ||
|
||
# multiple line question | ||
"66953780-165b-4e7e-8ce3-4bcb80b6385a" = true | ||
|
||
# starting with whitespace | ||
"5371ef75-d9ea-4103-bcfa-2da973ddec1b" = true | ||
|
||
# ending with whitespace | ||
"05b304d6-f83b-46e7-81e0-4cd3ca647900" = true | ||
|
||
# other whitespace | ||
"72bd5ad3-9b2f-4931-a988-dce1f5771de2" = true | ||
|
||
# non-question ending with whitespace | ||
"12983553-8601-46a8-92fa-fcaa3bc4a2a0" = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
[canonical-tests] | ||
|
||
# on the hour | ||
"a577bacc-106b-496e-9792-b3083ea8705e" = true | ||
|
||
# past the hour | ||
"b5d0c360-3b88-489b-8e84-68a1c7a4fa23" = true | ||
|
||
# midnight is zero hours | ||
"473223f4-65f3-46ff-a9f7-7663c7e59440" = true | ||
|
||
# hour rolls over | ||
"ca95d24a-5924-447d-9a96-b91c8334725c" = true | ||
|
||
# hour rolls over continuously | ||
"f3826de0-0925-4d69-8ac8-89aea7e52b78" = true | ||
|
||
# sixty minutes is next hour | ||
"a02f7edf-dfd4-4b11-b21a-86de3cc6a95c" = true | ||
|
||
# minutes roll over | ||
"8f520df6-b816-444d-b90f-8a477789beb5" = true | ||
|
||
# minutes roll over continuously | ||
"c75c091b-47ac-4655-8d40-643767fc4eed" = true | ||
|
||
# hour and minutes roll over | ||
"06343ecb-cf39-419d-a3f5-dcbae0cc4c57" = true | ||
|
||
# hour and minutes roll over continuously | ||
"be60810e-f5d9-4b58-9351-a9d1e90e660c" = true | ||
|
||
# hour and minutes roll over to exactly midnight | ||
"1689107b-0b5c-4bea-aad3-65ec9859368a" = true | ||
|
||
# negative hour | ||
"d3088ee8-91b7-4446-9e9d-5e2ad6219d91" = true | ||
|
||
# negative hour rolls over | ||
"77ef6921-f120-4d29-bade-80d54aa43b54" = true | ||
|
||
# negative hour rolls over continuously | ||
"359294b5-972f-4546-bb9a-a85559065234" = true | ||
|
||
# negative minutes | ||
"509db8b7-ac19-47cc-bd3a-a9d2f30b03c0" = true | ||
|
||
# negative minutes roll over | ||
"5d6bb225-130f-4084-84fd-9e0df8996f2a" = true | ||
|
||
# negative minutes roll over continuously | ||
"d483ceef-b520-4f0c-b94a-8d2d58cf0484" = true | ||
|
||
# negative sixty minutes is previous hour | ||
"1cd19447-19c6-44bf-9d04-9f8305ccb9ea" = true | ||
|
||
# negative hour and minutes both roll over | ||
"9d3053aa-4f47-4afc-bd45-d67a72cef4dc" = true | ||
|
||
# negative hour and minutes both roll over continuously | ||
"51d41fcf-491e-4ca0-9cae-2aa4f0163ad4" = true | ||
|
||
# add minutes | ||
"d098e723-ad29-4ef9-997a-2693c4c9d89a" = true | ||
|
||
# add no minutes | ||
"b6ec8f38-e53e-4b22-92a7-60dab1f485f4" = true | ||
|
||
# add to next hour | ||
"efd349dd-0785-453e-9ff8-d7452a8e7269" = true | ||
|
||
# add more than one hour | ||
"749890f7-aba9-4702-acce-87becf4ef9fe" = true | ||
|
||
# add more than two hours with carry | ||
"da63e4c1-1584-46e3-8d18-c9dc802c1713" = true | ||
|
||
# add across midnight | ||
"be167a32-3d33-4cec-a8bc-accd47ddbb71" = true | ||
|
||
# add more than one day (1500 min = 25 hrs) | ||
"6672541e-cdae-46e4-8be7-a820cc3be2a8" = true | ||
|
||
# add more than two days | ||
"1918050d-c79b-4cb7-b707-b607e2745c7e" = true | ||
|
||
# subtract minutes | ||
"37336cac-5ede-43a5-9026-d426cbe40354" = true | ||
|
||
# subtract to previous hour | ||
"0aafa4d0-3b5f-4b12-b3af-e3a9e09c047b" = true | ||
|
||
# subtract more than an hour | ||
"9b4e809c-612f-4b15-aae0-1df0acb801b9" = true | ||
|
||
# subtract across midnight | ||
"8b04bb6a-3d33-4e6c-8de9-f5de6d2c70d6" = true | ||
|
||
# subtract more than two hours | ||
"07c3bbf7-ce4d-4658-86e8-4a77b7a5ccd9" = true | ||
|
||
# subtract more than two hours with borrow | ||
"90ac8a1b-761c-4342-9c9c-cdc3ed5db097" = true | ||
|
||
# subtract more than one day (1500 min = 25 hrs) | ||
"2149f985-7136-44ad-9b29-ec023a97a2b7" = true | ||
|
||
# subtract more than two days | ||
"ba11dbf0-ac27-4acb-ada9-3b853ec08c97" = true | ||
|
||
# clocks with same time | ||
"f2fdad51-499f-4c9b-a791-b28c9282e311" = true | ||
|
||
# clocks a minute apart | ||
"5d409d4b-f862-4960-901e-ec430160b768" = true | ||
|
||
# clocks an hour apart | ||
"a6045fcf-2b52-4a47-8bb2-ef10a064cba5" = true | ||
|
||
# clocks with hour overflow | ||
"66b12758-0be5-448b-a13c-6a44bce83527" = true | ||
|
||
# clocks with hour overflow by several days | ||
"2b19960c-212e-4a71-9aac-c581592f8111" = true | ||
|
||
# clocks with negative hour | ||
"6f8c6541-afac-4a92-b0c2-b10d4e50269f" = true | ||
|
||
# clocks with negative hour that wraps | ||
"bb9d5a68-e324-4bf5-a75e-0e9b1f97a90d" = true | ||
|
||
# clocks with negative hour that wraps multiple times | ||
"56c0326d-565b-4d19-a26f-63b3205778b7" = true | ||
|
||
# clocks with minute overflow | ||
"c90b9de8-ddff-4ffe-9858-da44a40fdbc2" = true | ||
|
||
# clocks with minute overflow by several days | ||
"533a3dc5-59a7-491b-b728-a7a34fe325de" = true | ||
|
||
# clocks with negative minute | ||
"fff49e15-f7b7-4692-a204-0f6052d62636" = true | ||
|
||
# clocks with negative minute that wraps | ||
"605c65bb-21bd-43eb-8f04-878edf508366" = true | ||
|
||
# clocks with negative minute that wraps multiple times | ||
"b87e64ed-212a-4335-91fd-56da8421d077" = true | ||
|
||
# clocks with negative hours and minutes | ||
"822fbf26-1f3b-4b13-b9bf-c914816b53dd" = true | ||
|
||
# clocks with negative hours and minutes that wrap | ||
"e787bccd-cf58-4a1d-841c-ff80eaaccfaa" = true | ||
|
||
# full clock and zeroed clock | ||
"96969ca8-875a-48a1-86ae-257a528c44f5" = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[canonical-tests] | ||
|
||
# empty strands | ||
"f6dcb64f-03b0-4b60-81b1-3c9dbf47e887" = true | ||
|
||
# single letter identical strands | ||
"54681314-eee2-439a-9db0-b0636c656156" = true | ||
|
||
# single letter different strands | ||
"294479a3-a4c8-478f-8d63-6209815a827b" = true | ||
|
||
# long identical strands | ||
"9aed5f34-5693-4344-9b31-40c692fb5592" = true | ||
|
||
# long different strands | ||
"cd2273a5-c576-46c8-a52b-dee251c3e6e5" = true | ||
|
||
# disallow first strand longer | ||
"919f8ef0-b767-4d1b-8516-6379d07fcb28" = true | ||
|
||
# disallow second strand longer | ||
"8a2d4ed0-ead5-4fdd-924d-27c4cf56e60e" = true | ||
|
||
# disallow left empty strand | ||
"5dce058b-28d4-4ca7-aa64-adfe4e17784c" = true | ||
|
||
# disallow right empty strand | ||
"38826d4b-16fb-4639-ac3e-ba027dec8b5f" = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[canonical-tests] | ||
|
||
# Say Hi! | ||
"af9ffe10-dc13-42d8-a742-e7bdafac449d" = true |
Oops, something went wrong.