From 2269862338362bfc604c79418f87ae9fe2324246 Mon Sep 17 00:00:00 2001 From: BethanyG Date: Thu, 30 Apr 2026 16:53:45 -0700 Subject: [PATCH 1/2] Updated and added tests.toml file for connect, dot-dsl, hangman, simpe-linked-list, and tree-building. --- exercises/practice/connect/.meta/tests.toml | 19 +++- exercises/practice/dot-dsl/.meta/tests.toml | 67 ++++++++++++ exercises/practice/hangman/.meta/tests.toml | 40 +++++++ .../simple-linked-list/.meta/tests.toml | 101 ++++++++++++++++++ .../practice/tree-building/.meta/tests.toml | 58 ++++++++++ 5 files changed, 282 insertions(+), 3 deletions(-) create mode 100644 exercises/practice/dot-dsl/.meta/tests.toml create mode 100644 exercises/practice/hangman/.meta/tests.toml create mode 100644 exercises/practice/simple-linked-list/.meta/tests.toml create mode 100644 exercises/practice/tree-building/.meta/tests.toml diff --git a/exercises/practice/connect/.meta/tests.toml b/exercises/practice/connect/.meta/tests.toml index 59ec615e39a..951b87e5c42 100644 --- a/exercises/practice/connect/.meta/tests.toml +++ b/exercises/practice/connect/.meta/tests.toml @@ -1,6 +1,13 @@ -# This is an auto-generated file. Regular comments will be removed when this -# file is regenerated. Regenerating will not touch any manually added keys, -# so comments can be added in a "comment" key. +# 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. [6eff0df4-3e92-478d-9b54-d3e8b354db56] description = "an empty board has no winner" @@ -23,6 +30,12 @@ description = "nobody wins crossing adjacent angles" [cd61c143-92f6-4a8d-84d9-cb2b359e226b] description = "X wins crossing from left to right" +[495e33ed-30a9-4012-b46e-d7c4d5fe13c3] +description = "X wins with left-hand dead end fork" + +[ab167ab0-4a98-4d0f-a1c0-e1cddddc3d58] +description = "X wins with right-hand dead end fork" + [73d1eda6-16ab-4460-9904-b5f5dd401d0b] description = "O wins crossing from top to bottom" diff --git a/exercises/practice/dot-dsl/.meta/tests.toml b/exercises/practice/dot-dsl/.meta/tests.toml new file mode 100644 index 00000000000..3c56379a6eb --- /dev/null +++ b/exercises/practice/dot-dsl/.meta/tests.toml @@ -0,0 +1,67 @@ +# 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. + +[3a50c618-2571-466b-9ee9-346d9943912e] +description = "empty graph" + +[5067feea-e49b-4a9d-865e-4502d6b0540c] +description = "graph with one node" + +[b66cf871-88c6-489a-b0b9-7c79b6819c45] +description = "graph with one node with attribute" + +[f7841da3-c0f8-4541-b594-21b626a764d2] +description = "graph with one edge" + +[bbee70e1-6b0d-4f3a-bd4e-41cd2cfc0e39] +description = "graph with one attribute" + +[ac736158-6684-418d-93d5-7b284e43294e] +description = "graph with comments" + +[69068da9-7690-4d4d-a728-f5c2bf132a33] +description = "graph with nodes, edges, and attributes" + +[f6c53993-3937-4959-bcde-dc16411113ae] +description = "multiple edges on one line" + +[b853dfc1-1f05-45aa-bc98-b0fc6b57529b] +description = "only 1 edge between nodes" + +[bdc0fdac-aa46-457f-8385-65736ccdc1c7] +description = "malformed input" + +[f5c4f77d-359c-434a-9c33-b9eb795bafdd] +description = "malformed edge" + +[2238f6b8-20bb-489f-8ca0-084d1771d758] +description = "malformed edge 2" + +[4e3a4386-9e80-4315-b70f-253a06a2234e] +description = "invalid edge type" + +[793adce3-bd19-4458-ac41-c989f7f8d9db] +description = "multiple edges missing a node" + +[e2930b2c-3a03-4d8f-abe9-78a125a915a7] +description = "multiple edges missing a connector" + +[55d3f722-f9f1-46e1-b308-da61607952ab] +description = "empty attribute" + +[4ee2a9c3-54b1-4825-bd58-2b78c2c53953] +description = "malformed attribute" + +[382a13c8-6419-4286-8dd2-eac708f3e2a8] +description = "empty attribute name" + +[a6f9e6ab-8c3e-4475-a9fe-5dd061cadec6] +description = "non-alphanumeric node name" diff --git a/exercises/practice/hangman/.meta/tests.toml b/exercises/practice/hangman/.meta/tests.toml new file mode 100644 index 00000000000..12917b7c4cb --- /dev/null +++ b/exercises/practice/hangman/.meta/tests.toml @@ -0,0 +1,40 @@ +# 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. + +[2419ffe6-16d8-4059-856a-9a101998a418] +description = "Initially 9 failures are allowed and no letters are guessed" + +[17c4296d-daab-44dc-8155-37c77caa52c1] +description = "After 10 failures the game is over" + +[77c9ae1f-bbc4-4ed4-b67e-08110cbcfc17] +description = "Losing with several correct guesses" + +[25101d8d-9874-405b-9825-193a14b69753] +description = "Feeding a correct letter removes underscores" + +[8e6bd521-bc9b-458f-9cce-f57f4140c173] +description = "Feeding a correct letter twice counts as a failure" + +[5e6971b7-5e5f-49c2-b85d-1dd6aeb53bd5] +description = "Guessing a repeated letter reveals all instances" + +[a6c69d92-01ef-4b81-b9d9-801131e79bbb] +description = "Getting all the letters right makes for a win" + +[2dc47994-b434-4a26-b70c-1eebeff77fe4] +description = "Winning on the last guess is still a win" + +[52801d56-6963-494b-a901-5736e46ddc12] +description = "Guessing after a lose is error" + +[29a874f3-a413-4e1b-9a60-6be018e70b60] +description = "Guessing after a win is error" diff --git a/exercises/practice/simple-linked-list/.meta/tests.toml b/exercises/practice/simple-linked-list/.meta/tests.toml new file mode 100644 index 00000000000..b1e320ebbbb --- /dev/null +++ b/exercises/practice/simple-linked-list/.meta/tests.toml @@ -0,0 +1,101 @@ +# 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. + +[962d998c-c203-41e2-8fbd-85a7b98b79b9] +description = "count -> Empty list has length of zero" + +[9760262e-d7e4-4639-9840-87e2e2fbb115] +description = "count -> Singleton list has length of one" + +[d9955c90-637c-441b-b41d-8cfb48e924a8] +description = "count -> Non-empty list has correct length" + +[0c3966db-58f9-4632-b94c-8ea13e54c2c8] +description = "pop -> Pop from empty list is an error" + +[a4f9d2e1-7425-49ef-9ee8-6c0cb3407cf0] +description = "pop -> Can pop from singleton list" + +[6dcbb2c9-d98a-47bc-a010-9c19703d3ea2] +description = "pop -> Can pop from non-empty list" + +[e83aade9-f030-4096-aaf0-f9dc6491e6cf] +description = "pop -> Can pop multiple items" + +[5c46bcf2-c0a9-4654-ae17-f3192436fcf1] +description = "pop -> Pop updates the count" + +[70d747a1-2e84-4ebc-bc3f-dcbee6a05f6b] +description = "push -> Can push to an empty list" +include = false + +[f3197f0a-1fea-45a5-939f-4a5ea60387ec] +description = "push -> Can push to an empty list" +reimplements = "70d747a1-2e84-4ebc-bc3f-dcbee6a05f6b" + +[391e332e-1f91-4033-b1e0-0e0c17812fa7] +description = "push -> Can push to a non-empty list" + +[ed4b0e01-3bbd-4895-af25-152b5914b3da] +description = "push -> Push updates count" + +[41666790-b932-4e5a-b323-e848a83d12d5] +description = "push -> Push and pop" + +[930a4a5c-76f6-47ec-9be3-4e70993173a1] +description = "peek -> Peek on empty list is an error" + +[43255a50-d919-4e81-afce-e4a271eaedbd] +description = "peek -> Can peek on singleton list" + +[48353020-e25d-4621-a854-e35fb1e15fa7] +description = "peek -> Can peek on non-empty list" + +[96fcead9-a713-46c2-8005-3f246c873851] +description = "peek -> Peek does not change the count" + +[7576ed05-7ff7-4b84-8efb-d34d62c110f5] +description = "peek -> Can peek after a pop and push" + +[b97d00b6-2fab-435d-ae74-3233dcc13698] +description = "toList LIFO -> Empty linked list to list is empty" + +[eedeb95f-b5cf-431d-8ad6-5854ba6b251c] +description = "toList LIFO -> To list with multiple values" + +[838678de-eaf3-4c14-b34e-7e35b6d851e8] +description = "toList LIFO -> To list after a pop" + +[03fc83a5-48a8-470b-a2d2-a286c5e8365f] +description = "toList FIFO -> Empty linked list to list is empty" + +[1282484e-a58c-426a-972e-90746bda61fc] +description = "toList FIFO -> To list with multiple values" + +[05ca3109-1249-4c0c-a567-a3b2f8352a7c] +description = "toList FIFO -> To list after a pop" + +[5e6c1a3d-e34b-46d3-be59-3f132a820ed5] +description = "reverse -> Reversed empty list has same values" + +[93c87ed3-862a-474f-820b-ba3fd6b6daf6] +description = "reverse -> Reversed singleton list is same list" + +[92851ebe-9f52-4406-b92e-0718c441a2ab] +description = "reverse -> Reversed non-empty list is reversed" +include = false + +[1210eeda-b23f-4790-930c-7ac6d0c8e723] +description = "reverse -> Reversed non-empty list is reversed" +reimplements = "92851ebe-9f52-4406-b92e-0718c441a2ab" + +[9b53af96-7494-4cfa-9b77-b7366fed5c4c] +description = "reverse -> Double reverse" diff --git a/exercises/practice/tree-building/.meta/tests.toml b/exercises/practice/tree-building/.meta/tests.toml new file mode 100644 index 00000000000..fcdc1d508ae --- /dev/null +++ b/exercises/practice/tree-building/.meta/tests.toml @@ -0,0 +1,58 @@ +# 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. + +[761790a3-4c27-461a-b4e9-8bce8ccee5a1] +description = "empty list" + +[dcc89dc3-eb39-4f26-a3cd-964e607c95ff] +description = "single record" + +[dcdb80f0-e5da-43e1-8b8d-6f307be89c0e] +description = "three records in order" + +[2ff5b8f8-d95e-401e-9359-233919488d22] +description = "three records in reverse order" + +[de798d3b-8905-4446-a114-a0dd2476d945] +description = "more than two children" + +[13dd9b3c-6137-415f-b6fe-5044c1dfbc50] +description = "binary tree" + +[5cfd29dc-166b-47da-84ca-1c60b5ae5941] +description = "unbalanced tree" + +[a05ddb5d-2d11-4948-88d3-b5f18a44ddce] +description = "one root node and has parent" + +[9ed09df2-8fd6-4e37-aa37-e7753c057a1a] +description = "root node has parent" + +[8755a2c4-2c6b-4396-b155-b5bf4b6bc280] +description = "no root node" + +[c6ef8f9a-4045-4949-a1e1-e0ae804e4af4] +description = "duplicate node" + +[7a7b77a6-3447-4905-b79c-d22bfe43f408] +description = "duplicate root" + +[c6f51bd7-3608-4390-b446-dfd1bcbf3ddc] +description = "non-continuous" + +[1f3d1b50-4494-4b22-b88a-68f32f7d321d] +description = "cycle directly" + +[ac568b50-3f9b-4cb4-b602-e0eb13de4269] +description = "cycle indirectly" + +[cf954b21-3cef-420c-8e72-d19547505e1f] +description = "higher id parent of lower id" From bdae192c277cd85da5df69a8fcda79ef59b14ce1 Mon Sep 17 00:00:00 2001 From: BethanyG Date: Thu, 30 Apr 2026 17:05:58 -0700 Subject: [PATCH 2/2] Reverting connect file because tests need to be regenerated. --- exercises/practice/connect/.meta/tests.toml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/exercises/practice/connect/.meta/tests.toml b/exercises/practice/connect/.meta/tests.toml index 951b87e5c42..6ada87732c5 100644 --- a/exercises/practice/connect/.meta/tests.toml +++ b/exercises/practice/connect/.meta/tests.toml @@ -30,12 +30,6 @@ description = "nobody wins crossing adjacent angles" [cd61c143-92f6-4a8d-84d9-cb2b359e226b] description = "X wins crossing from left to right" -[495e33ed-30a9-4012-b46e-d7c4d5fe13c3] -description = "X wins with left-hand dead end fork" - -[ab167ab0-4a98-4d0f-a1c0-e1cddddc3d58] -description = "X wins with right-hand dead end fork" - [73d1eda6-16ab-4460-9904-b5f5dd401d0b] description = "O wins crossing from top to bottom"