Skip to content

Commit b4d26fc

Browse files
authored
[April Sync to Problem Specifications]: Updated & Added tests.toml files (#4140)
* Updated and added tests.toml file for connect, dot-dsl, hangman, simpe-linked-list, and tree-building. * Reverting connect file because tests need to be regenerated.
1 parent ddea994 commit b4d26fc

5 files changed

Lines changed: 276 additions & 3 deletions

File tree

exercises/practice/connect/.meta/tests.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
# This is an auto-generated file. Regular comments will be removed when this
2-
# file is regenerated. Regenerating will not touch any manually added keys,
3-
# so comments can be added in a "comment" key.
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
411

512
[6eff0df4-3e92-478d-9b54-d3e8b354db56]
613
description = "an empty board has no winner"
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
11+
12+
[3a50c618-2571-466b-9ee9-346d9943912e]
13+
description = "empty graph"
14+
15+
[5067feea-e49b-4a9d-865e-4502d6b0540c]
16+
description = "graph with one node"
17+
18+
[b66cf871-88c6-489a-b0b9-7c79b6819c45]
19+
description = "graph with one node with attribute"
20+
21+
[f7841da3-c0f8-4541-b594-21b626a764d2]
22+
description = "graph with one edge"
23+
24+
[bbee70e1-6b0d-4f3a-bd4e-41cd2cfc0e39]
25+
description = "graph with one attribute"
26+
27+
[ac736158-6684-418d-93d5-7b284e43294e]
28+
description = "graph with comments"
29+
30+
[69068da9-7690-4d4d-a728-f5c2bf132a33]
31+
description = "graph with nodes, edges, and attributes"
32+
33+
[f6c53993-3937-4959-bcde-dc16411113ae]
34+
description = "multiple edges on one line"
35+
36+
[b853dfc1-1f05-45aa-bc98-b0fc6b57529b]
37+
description = "only 1 edge between nodes"
38+
39+
[bdc0fdac-aa46-457f-8385-65736ccdc1c7]
40+
description = "malformed input"
41+
42+
[f5c4f77d-359c-434a-9c33-b9eb795bafdd]
43+
description = "malformed edge"
44+
45+
[2238f6b8-20bb-489f-8ca0-084d1771d758]
46+
description = "malformed edge 2"
47+
48+
[4e3a4386-9e80-4315-b70f-253a06a2234e]
49+
description = "invalid edge type"
50+
51+
[793adce3-bd19-4458-ac41-c989f7f8d9db]
52+
description = "multiple edges missing a node"
53+
54+
[e2930b2c-3a03-4d8f-abe9-78a125a915a7]
55+
description = "multiple edges missing a connector"
56+
57+
[55d3f722-f9f1-46e1-b308-da61607952ab]
58+
description = "empty attribute"
59+
60+
[4ee2a9c3-54b1-4825-bd58-2b78c2c53953]
61+
description = "malformed attribute"
62+
63+
[382a13c8-6419-4286-8dd2-eac708f3e2a8]
64+
description = "empty attribute name"
65+
66+
[a6f9e6ab-8c3e-4475-a9fe-5dd061cadec6]
67+
description = "non-alphanumeric node name"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
11+
12+
[2419ffe6-16d8-4059-856a-9a101998a418]
13+
description = "Initially 9 failures are allowed and no letters are guessed"
14+
15+
[17c4296d-daab-44dc-8155-37c77caa52c1]
16+
description = "After 10 failures the game is over"
17+
18+
[77c9ae1f-bbc4-4ed4-b67e-08110cbcfc17]
19+
description = "Losing with several correct guesses"
20+
21+
[25101d8d-9874-405b-9825-193a14b69753]
22+
description = "Feeding a correct letter removes underscores"
23+
24+
[8e6bd521-bc9b-458f-9cce-f57f4140c173]
25+
description = "Feeding a correct letter twice counts as a failure"
26+
27+
[5e6971b7-5e5f-49c2-b85d-1dd6aeb53bd5]
28+
description = "Guessing a repeated letter reveals all instances"
29+
30+
[a6c69d92-01ef-4b81-b9d9-801131e79bbb]
31+
description = "Getting all the letters right makes for a win"
32+
33+
[2dc47994-b434-4a26-b70c-1eebeff77fe4]
34+
description = "Winning on the last guess is still a win"
35+
36+
[52801d56-6963-494b-a901-5736e46ddc12]
37+
description = "Guessing after a lose is error"
38+
39+
[29a874f3-a413-4e1b-9a60-6be018e70b60]
40+
description = "Guessing after a win is error"
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
11+
12+
[962d998c-c203-41e2-8fbd-85a7b98b79b9]
13+
description = "count -> Empty list has length of zero"
14+
15+
[9760262e-d7e4-4639-9840-87e2e2fbb115]
16+
description = "count -> Singleton list has length of one"
17+
18+
[d9955c90-637c-441b-b41d-8cfb48e924a8]
19+
description = "count -> Non-empty list has correct length"
20+
21+
[0c3966db-58f9-4632-b94c-8ea13e54c2c8]
22+
description = "pop -> Pop from empty list is an error"
23+
24+
[a4f9d2e1-7425-49ef-9ee8-6c0cb3407cf0]
25+
description = "pop -> Can pop from singleton list"
26+
27+
[6dcbb2c9-d98a-47bc-a010-9c19703d3ea2]
28+
description = "pop -> Can pop from non-empty list"
29+
30+
[e83aade9-f030-4096-aaf0-f9dc6491e6cf]
31+
description = "pop -> Can pop multiple items"
32+
33+
[5c46bcf2-c0a9-4654-ae17-f3192436fcf1]
34+
description = "pop -> Pop updates the count"
35+
36+
[70d747a1-2e84-4ebc-bc3f-dcbee6a05f6b]
37+
description = "push -> Can push to an empty list"
38+
include = false
39+
40+
[f3197f0a-1fea-45a5-939f-4a5ea60387ec]
41+
description = "push -> Can push to an empty list"
42+
reimplements = "70d747a1-2e84-4ebc-bc3f-dcbee6a05f6b"
43+
44+
[391e332e-1f91-4033-b1e0-0e0c17812fa7]
45+
description = "push -> Can push to a non-empty list"
46+
47+
[ed4b0e01-3bbd-4895-af25-152b5914b3da]
48+
description = "push -> Push updates count"
49+
50+
[41666790-b932-4e5a-b323-e848a83d12d5]
51+
description = "push -> Push and pop"
52+
53+
[930a4a5c-76f6-47ec-9be3-4e70993173a1]
54+
description = "peek -> Peek on empty list is an error"
55+
56+
[43255a50-d919-4e81-afce-e4a271eaedbd]
57+
description = "peek -> Can peek on singleton list"
58+
59+
[48353020-e25d-4621-a854-e35fb1e15fa7]
60+
description = "peek -> Can peek on non-empty list"
61+
62+
[96fcead9-a713-46c2-8005-3f246c873851]
63+
description = "peek -> Peek does not change the count"
64+
65+
[7576ed05-7ff7-4b84-8efb-d34d62c110f5]
66+
description = "peek -> Can peek after a pop and push"
67+
68+
[b97d00b6-2fab-435d-ae74-3233dcc13698]
69+
description = "toList LIFO -> Empty linked list to list is empty"
70+
71+
[eedeb95f-b5cf-431d-8ad6-5854ba6b251c]
72+
description = "toList LIFO -> To list with multiple values"
73+
74+
[838678de-eaf3-4c14-b34e-7e35b6d851e8]
75+
description = "toList LIFO -> To list after a pop"
76+
77+
[03fc83a5-48a8-470b-a2d2-a286c5e8365f]
78+
description = "toList FIFO -> Empty linked list to list is empty"
79+
80+
[1282484e-a58c-426a-972e-90746bda61fc]
81+
description = "toList FIFO -> To list with multiple values"
82+
83+
[05ca3109-1249-4c0c-a567-a3b2f8352a7c]
84+
description = "toList FIFO -> To list after a pop"
85+
86+
[5e6c1a3d-e34b-46d3-be59-3f132a820ed5]
87+
description = "reverse -> Reversed empty list has same values"
88+
89+
[93c87ed3-862a-474f-820b-ba3fd6b6daf6]
90+
description = "reverse -> Reversed singleton list is same list"
91+
92+
[92851ebe-9f52-4406-b92e-0718c441a2ab]
93+
description = "reverse -> Reversed non-empty list is reversed"
94+
include = false
95+
96+
[1210eeda-b23f-4790-930c-7ac6d0c8e723]
97+
description = "reverse -> Reversed non-empty list is reversed"
98+
reimplements = "92851ebe-9f52-4406-b92e-0718c441a2ab"
99+
100+
[9b53af96-7494-4cfa-9b77-b7366fed5c4c]
101+
description = "reverse -> Double reverse"
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
11+
12+
[761790a3-4c27-461a-b4e9-8bce8ccee5a1]
13+
description = "empty list"
14+
15+
[dcc89dc3-eb39-4f26-a3cd-964e607c95ff]
16+
description = "single record"
17+
18+
[dcdb80f0-e5da-43e1-8b8d-6f307be89c0e]
19+
description = "three records in order"
20+
21+
[2ff5b8f8-d95e-401e-9359-233919488d22]
22+
description = "three records in reverse order"
23+
24+
[de798d3b-8905-4446-a114-a0dd2476d945]
25+
description = "more than two children"
26+
27+
[13dd9b3c-6137-415f-b6fe-5044c1dfbc50]
28+
description = "binary tree"
29+
30+
[5cfd29dc-166b-47da-84ca-1c60b5ae5941]
31+
description = "unbalanced tree"
32+
33+
[a05ddb5d-2d11-4948-88d3-b5f18a44ddce]
34+
description = "one root node and has parent"
35+
36+
[9ed09df2-8fd6-4e37-aa37-e7753c057a1a]
37+
description = "root node has parent"
38+
39+
[8755a2c4-2c6b-4396-b155-b5bf4b6bc280]
40+
description = "no root node"
41+
42+
[c6ef8f9a-4045-4949-a1e1-e0ae804e4af4]
43+
description = "duplicate node"
44+
45+
[7a7b77a6-3447-4905-b79c-d22bfe43f408]
46+
description = "duplicate root"
47+
48+
[c6f51bd7-3608-4390-b446-dfd1bcbf3ddc]
49+
description = "non-continuous"
50+
51+
[1f3d1b50-4494-4b22-b88a-68f32f7d321d]
52+
description = "cycle directly"
53+
54+
[ac568b50-3f9b-4cb4-b602-e0eb13de4269]
55+
description = "cycle indirectly"
56+
57+
[cf954b21-3cef-420c-8e72-d19547505e1f]
58+
description = "higher id parent of lower id"

0 commit comments

Comments
 (0)