Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Add tests.toml file for all exercises with canonical data
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Jun 30, 2021
1 parent b0f63a7 commit 6ff4b3e
Show file tree
Hide file tree
Showing 26 changed files with 1,352 additions and 96 deletions.
157 changes: 157 additions & 0 deletions exercises/practice/allergies/.meta/tests.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
# This is an auto-generated file.
#
# Regenerating this file via `configlet sync` will:
# - Recreate every `description` key/value pair
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
# - Preserve any other key/value pair
#
# As user-added comments (using the # character) will be removed when this file
# is regenerated, comments can be added via a `comment` key.

[17fc7296-2440-4ac4-ad7b-d07c321bc5a0]
description = "testing for eggs allergy -> not allergic to anything"

[07ced27b-1da5-4c2e-8ae2-cb2791437546]
description = "testing for eggs allergy -> allergic only to eggs"

[5035b954-b6fa-4b9b-a487-dae69d8c5f96]
description = "testing for eggs allergy -> allergic to eggs and something else"

[64a6a83a-5723-4b5b-a896-663307403310]
description = "testing for eggs allergy -> allergic to something, but not eggs"

[90c8f484-456b-41c4-82ba-2d08d93231c6]
description = "testing for eggs allergy -> allergic to everything"

[d266a59a-fccc-413b-ac53-d57cb1f0db9d]
description = "testing for peanuts allergy -> not allergic to anything"

[ea210a98-860d-46b2-a5bf-50d8995b3f2a]
description = "testing for peanuts allergy -> allergic only to peanuts"

[eac69ae9-8d14-4291-ac4b-7fd2c73d3a5b]
description = "testing for peanuts allergy -> allergic to peanuts and something else"

[9152058c-ce39-4b16-9b1d-283ec6d25085]
description = "testing for peanuts allergy -> allergic to something, but not peanuts"

[d2d71fd8-63d5-40f9-a627-fbdaf88caeab]
description = "testing for peanuts allergy -> allergic to everything"

[b948b0a1-cbf7-4b28-a244-73ff56687c80]
description = "testing for shellfish allergy -> not allergic to anything"

[9ce9a6f3-53e9-4923-85e0-73019047c567]
description = "testing for shellfish allergy -> allergic only to shellfish"

[b272fca5-57ba-4b00-bd0c-43a737ab2131]
description = "testing for shellfish allergy -> allergic to shellfish and something else"

[21ef8e17-c227-494e-8e78-470a1c59c3d8]
description = "testing for shellfish allergy -> allergic to something, but not shellfish"

[cc789c19-2b5e-4c67-b146-625dc8cfa34e]
description = "testing for shellfish allergy -> allergic to everything"

[651bde0a-2a74-46c4-ab55-02a0906ca2f5]
description = "testing for strawberries allergy -> not allergic to anything"

[b649a750-9703-4f5f-b7f7-91da2c160ece]
description = "testing for strawberries allergy -> allergic only to strawberries"

[50f5f8f3-3bac-47e6-8dba-2d94470a4bc6]
description = "testing for strawberries allergy -> allergic to strawberries and something else"

[23dd6952-88c9-48d7-a7d5-5d0343deb18d]
description = "testing for strawberries allergy -> allergic to something, but not strawberries"

[74afaae2-13b6-43a2-837a-286cd42e7d7e]
description = "testing for strawberries allergy -> allergic to everything"

[c49a91ef-6252-415e-907e-a9d26ef61723]
description = "testing for tomatoes allergy -> not allergic to anything"

[b69c5131-b7d0-41ad-a32c-e1b2cc632df8]
description = "testing for tomatoes allergy -> allergic only to tomatoes"

[1ca50eb1-f042-4ccf-9050-341521b929ec]
description = "testing for tomatoes allergy -> allergic to tomatoes and something else"

[e9846baa-456b-4eff-8025-034b9f77bd8e]
description = "testing for tomatoes allergy -> allergic to something, but not tomatoes"

[b2414f01-f3ad-4965-8391-e65f54dad35f]
description = "testing for tomatoes allergy -> allergic to everything"

[978467ab-bda4-49f7-b004-1d011ead947c]
description = "testing for chocolate allergy -> not allergic to anything"

[59cf4e49-06ea-4139-a2c1-d7aad28f8cbc]
description = "testing for chocolate allergy -> allergic only to chocolate"

[b0a7c07b-2db7-4f73-a180-565e07040ef1]
description = "testing for chocolate allergy -> allergic to chocolate and something else"

[f5506893-f1ae-482a-b516-7532ba5ca9d2]
description = "testing for chocolate allergy -> allergic to something, but not chocolate"

[02debb3d-d7e2-4376-a26b-3c974b6595c6]
description = "testing for chocolate allergy -> allergic to everything"

[17f4a42b-c91e-41b8-8a76-4797886c2d96]
description = "testing for pollen allergy -> not allergic to anything"

[7696eba7-1837-4488-882a-14b7b4e3e399]
description = "testing for pollen allergy -> allergic only to pollen"

[9a49aec5-fa1f-405d-889e-4dfc420db2b6]
description = "testing for pollen allergy -> allergic to pollen and something else"

[3cb8e79f-d108-4712-b620-aa146b1954a9]
description = "testing for pollen allergy -> allergic to something, but not pollen"

[1dc3fe57-7c68-4043-9d51-5457128744b2]
description = "testing for pollen allergy -> allergic to everything"

[d3f523d6-3d50-419b-a222-d4dfd62ce314]
description = "testing for cats allergy -> not allergic to anything"

[eba541c3-c886-42d3-baef-c048cb7fcd8f]
description = "testing for cats allergy -> allergic only to cats"

[ba718376-26e0-40b7-bbbe-060287637ea5]
description = "testing for cats allergy -> allergic to cats and something else"

[3c6dbf4a-5277-436f-8b88-15a206f2d6c4]
description = "testing for cats allergy -> allergic to something, but not cats"

[1faabb05-2b98-4995-9046-d83e4a48a7c1]
description = "testing for cats allergy -> allergic to everything"

[f9c1b8e7-7dc5-4887-aa93-cebdcc29dd8f]
description = "list when: -> no allergies"

[9e1a4364-09a6-4d94-990f-541a94a4c1e8]
description = "list when: -> just eggs"

[8851c973-805e-4283-9e01-d0c0da0e4695]
description = "list when: -> just peanuts"

[2c8943cb-005e-435f-ae11-3e8fb558ea98]
description = "list when: -> just strawberries"

[6fa95d26-044c-48a9-8a7b-9ee46ec32c5c]
description = "list when: -> eggs and peanuts"

[19890e22-f63f-4c5c-a9fb-fb6eacddfe8e]
description = "list when: -> more than eggs but not peanuts"

[4b68f470-067c-44e4-889f-c9fe28917d2f]
description = "list when: -> lots of stuff"

[0881b7c5-9efa-4530-91bd-68370d054bc7]
description = "list when: -> everything"

[12ce86de-b347-42a0-ab7c-2e0570f0c65b]
description = "list when: -> no allergen score parts"
56 changes: 56 additions & 0 deletions exercises/practice/anagram/.meta/tests.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This is an auto-generated file.
#
# Regenerating this file via `configlet sync` will:
# - Recreate every `description` key/value pair
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
# - Preserve any other key/value pair
#
# As user-added comments (using the # character) will be removed when this file
# is regenerated, comments can be added via a `comment` key.

[dd40c4d2-3c8b-44e5-992a-f42b393ec373]
description = "no matches"

[b3cca662-f50a-489e-ae10-ab8290a09bdc]
description = "detects two anagrams"

[03eb9bbe-8906-4ea0-84fa-ffe711b52c8b]
description = "detects two anagrams"
reimplements = "b3cca662-f50a-489e-ae10-ab8290a09bdc"

[a27558ee-9ba0-4552-96b1-ecf665b06556]
description = "does not detect anagram subsets"

[64cd4584-fc15-4781-b633-3d814c4941a4]
description = "detects anagram"

[99c91beb-838f-4ccd-b123-935139917283]
description = "detects three anagrams"

[78487770-e258-4e1f-a646-8ece10950d90]
description = "detects multiple anagrams with different case"

[1d0ab8aa-362f-49b7-9902-3d0c668d557b]
description = "does not detect non-anagrams with identical checksum"

[9e632c0b-c0b1-4804-8cc1-e295dea6d8a8]
description = "detects anagrams case-insensitively"

[b248e49f-0905-48d2-9c8d-bd02d8c3e392]
description = "detects anagrams using case-insensitive subject"

[f367325c-78ec-411c-be76-e79047f4bd54]
description = "detects anagrams using case-insensitive possible matches"

[7cc195ad-e3c7-44ee-9fd2-d3c344806a2c]
description = "does not detect an anagram if the original word is repeated"

[9878a1c9-d6ea-4235-ae51-3ea2befd6842]
description = "anagrams must use all letters exactly once"

[85757361-4535-45fd-ac0e-3810d40debc1]
description = "words are not anagrams of themselves (case-insensitive)"

[a0705568-628c-4b55-9798-82e4acde51ca]
description = "words other than themselves can be anagrams"
37 changes: 37 additions & 0 deletions exercises/practice/armstrong-numbers/.meta/tests.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This is an auto-generated file.
#
# Regenerating this file via `configlet sync` will:
# - Recreate every `description` key/value pair
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
# - Preserve any other key/value pair
#
# As user-added comments (using the # character) will be removed when this file
# is regenerated, comments can be added via a `comment` key.

[c1ed103c-258d-45b2-be73-d8c6d9580c7b]
description = "Zero is an Armstrong number"

[579e8f03-9659-4b85-a1a2-d64350f6b17a]
description = "Single digit numbers are Armstrong numbers"

[2d6db9dc-5bf8-4976-a90b-b2c2b9feba60]
description = "There are no 2 digit Armstrong numbers"

[509c087f-e327-4113-a7d2-26a4e9d18283]
description = "Three digit number that is an Armstrong number"

[7154547d-c2ce-468d-b214-4cb953b870cf]
description = "Three digit number that is not an Armstrong number"

[6bac5b7b-42e9-4ecb-a8b0-4832229aa103]
description = "Four digit number that is an Armstrong number"

[eed4b331-af80-45b5-a80b-19c9ea444b2e]
description = "Four digit number that is not an Armstrong number"

[f971ced7-8d68-4758-aea1-d4194900b864]
description = "Seven digit number that is an Armstrong number"

[7ee45d52-5d35-4fbd-b6f1-5c8cd8a67f18]
description = "Seven digit number that is not an Armstrong number"
34 changes: 34 additions & 0 deletions exercises/practice/beer-song/.meta/tests.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This is an auto-generated file.
#
# Regenerating this file via `configlet sync` will:
# - Recreate every `description` key/value pair
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
# - Preserve any other key/value pair
#
# As user-added comments (using the # character) will be removed when this file
# is regenerated, comments can be added via a `comment` key.

[5a02fd08-d336-4607-8006-246fe6fa9fb0]
description = "verse -> single verse -> first generic verse"

[77299ca6-545e-4217-a9cc-606b342e0187]
description = "verse -> single verse -> last generic verse"

[102cbca0-b197-40fd-b548-e99609b06428]
description = "verse -> single verse -> verse with 2 bottles"

[b8ef9fce-960e-4d85-a0c9-980a04ec1972]
description = "verse -> single verse -> verse with 1 bottle"

[c59d4076-f671-4ee3-baaa-d4966801f90d]
description = "verse -> single verse -> verse with 0 bottles"

[7e17c794-402d-4ca6-8f96-4d8f6ee1ec7e]
description = "lyrics -> multiple verses -> first two verses"

[949868e7-67e8-43d3-9bb4-69277fe020fb]
description = "lyrics -> multiple verses -> last three verses"

[bc220626-126c-4e72-8df4-fddfc0c3e458]
description = "lyrics -> multiple verses -> all verses"
51 changes: 30 additions & 21 deletions exercises/practice/binary-search-tree/.meta/tests.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,40 @@
[canonical-tests]
# This is an auto-generated file.
#
# Regenerating this file via `configlet sync` will:
# - Recreate every `description` key/value pair
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
# - Preserve any other key/value pair
#
# As user-added comments (using the # character) will be removed when this file
# is regenerated, comments can be added via a `comment` key.

# data is retained
"e9c93a78-c536-4750-a336-94583d23fafa" = true
[e9c93a78-c536-4750-a336-94583d23fafa]
description = "data is retained"

# smaller number at left node
"7a95c9e8-69f6-476a-b0c4-4170cb3f7c91" = true
[7a95c9e8-69f6-476a-b0c4-4170cb3f7c91]
description = "insert data at proper node -> smaller number at left node"

# same number at left node
"22b89499-9805-4703-a159-1a6e434c1585" = true
[22b89499-9805-4703-a159-1a6e434c1585]
description = "insert data at proper node -> same number at left node"

# greater number at right node
"2e85fdde-77b1-41ed-b6ac-26ce6b663e34" = true
[2e85fdde-77b1-41ed-b6ac-26ce6b663e34]
description = "insert data at proper node -> greater number at right node"

# can create complex tree
"dd898658-40ab-41d0-965e-7f145bf66e0b" = true
[dd898658-40ab-41d0-965e-7f145bf66e0b]
description = "can create complex tree"

# can sort single number
"9e0c06ef-aeca-4202-b8e4-97f1ed057d56" = true
[9e0c06ef-aeca-4202-b8e4-97f1ed057d56]
description = "can sort data -> can sort single number"

# can sort if second number is smaller than first
"425e6d07-fceb-4681-a4f4-e46920e380bb" = true
[425e6d07-fceb-4681-a4f4-e46920e380bb]
description = "can sort data -> can sort if second number is smaller than first"

# can sort if second number is same as first
"bd7532cc-6988-4259-bac8-1d50140079ab" = true
[bd7532cc-6988-4259-bac8-1d50140079ab]
description = "can sort data -> can sort if second number is same as first"

# can sort if second number is greater than first
"b6d1b3a5-9d79-44fd-9013-c83ca92ddd36" = true
[b6d1b3a5-9d79-44fd-9013-c83ca92ddd36]
description = "can sort data -> can sort if second number is greater than first"

# can sort complex tree
"d00ec9bd-1288-4171-b968-d44d0808c1c8" = true
[d00ec9bd-1288-4171-b968-d44d0808c1c8]
description = "can sort data -> can sort complex tree"
Loading

0 comments on commit 6ff4b3e

Please sign in to comment.