Skip to content

Commit d9d8de9

Browse files
Update tests.toml
1 parent 00462f2 commit d9d8de9

File tree

14 files changed

+341
-81
lines changed

14 files changed

+341
-81
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
[983a1528-4ceb-45e5-8257-8ce01aceb5ed]
13+
description = "Newly opened account has zero balance"
14+
15+
[e88d4ec3-c6bf-4752-8e59-5046c44e3ba7]
16+
description = "Single deposit"
17+
18+
[3d9147d4-63f4-4844-8d2b-1fee2e9a2a0d]
19+
description = "Multiple deposits"
20+
21+
[08f1af07-27ae-4b38-aa19-770bde558064]
22+
description = "Withdraw once"
23+
24+
[6f6d242f-8c31-4ac6-8995-a90d42cad59f]
25+
description = "Withdraw twice"
26+
27+
[45161c94-a094-4c77-9cec-998b70429bda]
28+
description = "Can do multiple operations sequentially"
29+
30+
[f9facfaa-d824-486e-8381-48832c4bbffd]
31+
description = "Cannot check balance of closed account"
32+
33+
[7a65ba52-e35c-4fd2-8159-bda2bde6e59c]
34+
description = "Cannot deposit into closed account"
35+
36+
[a0a1835d-faae-4ad4-a6f3-1fcc2121380b]
37+
description = "Cannot deposit into unopened account"
38+
39+
[570dfaa5-0532-4c1f-a7d3-0f65c3265608]
40+
description = "Cannot withdraw from closed account"
41+
42+
[c396d233-1c49-4272-98dc-7f502dbb9470]
43+
description = "Cannot close an account that was not opened"
44+
45+
[c06f534f-bdc2-4a02-a388-1063400684de]
46+
description = "Cannot open an already opened account"
47+
48+
[0722d404-6116-4f92-ba3b-da7f88f1669c]
49+
description = "Reopened account does not retain balance"
50+
51+
[ec42245f-9361-4341-8231-a22e8d19c52f]
52+
description = "Cannot withdraw more than deposited"
53+
54+
[4f381ef8-10ef-4507-8e1d-0631ecc8ee72]
55+
description = "Cannot withdraw negative"
56+
57+
[d45df9ea-1db0-47f3-b18c-d365db49d938]
58+
description = "Cannot deposit negative"
59+
60+
[ba0c1e0b-0f00-416f-8097-a7dfc97871ff]
61+
description = "Can handle concurrent transactions"

exercises/practice/bob/.meta/tests.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ description = "alternate silence"
7171

7272
[66953780-165b-4e7e-8ce3-4bcb80b6385a]
7373
description = "multiple line question"
74+
include = false
7475

7576
[5371ef75-d9ea-4103-bcfa-2da973ddec1b]
7677
description = "starting with whitespace"
@@ -83,3 +84,7 @@ description = "other whitespace"
8384

8485
[12983553-8601-46a8-92fa-fcaa3bc4a2a0]
8586
description = "non-question ending with whitespace"
87+
88+
[2c7278ac-f955-4eb4-bf8f-e33eb4116a15]
89+
description = "multiple line question"
90+
reimplements = "66953780-165b-4e7e-8ce3-4bcb80b6385a"

exercises/practice/change/.meta/tests.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ description = "possible change without unit coins available"
3333
[9a166411-d35d-4f7f-a007-6724ac266178]
3434
description = "another possible change without unit coins available"
3535

36+
[ce0f80d5-51c3-469d-818c-3e69dbd25f75]
37+
description = "a greedy approach is not optimal"
38+
3639
[bbbcc154-e9e9-4209-a4db-dd6d81ec26bb]
3740
description = "no coins make 0 change"
3841

exercises/practice/crypto-square/.meta/tests.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
[407c3837-9aa7-4111-ab63-ec54b58e8e9f]
1313
description = "empty plaintext results in an empty ciphertext"
1414

15+
[aad04a25-b8bb-4304-888b-581bea8e0040]
16+
description = "normalization results in empty plaintext"
17+
1518
[64131d65-6fd9-4f58-bdd8-4a2370fb481d]
1619
description = "Lowercase"
1720

exercises/practice/custom-set/.meta/tests.toml

Lines changed: 44 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,115 +10,121 @@
1010
# is regenerated, comments can be added via a `comment` key.
1111

1212
[20c5f855-f83a-44a7-abdd-fe75c6cf022b]
13-
description = "sets with no elements are empty"
13+
description = "Returns true if the set contains no elements -> sets with no elements are empty"
1414

1515
[d506485d-5706-40db-b7d8-5ceb5acf88d2]
16-
description = "sets with elements are not empty"
16+
description = "Returns true if the set contains no elements -> sets with elements are not empty"
1717

1818
[759b9740-3417-44c3-8ca3-262b3c281043]
19-
description = "nothing is contained in an empty set"
19+
description = "Sets can report if they contain an element -> nothing is contained in an empty set"
2020

2121
[f83cd2d1-2a85-41bc-b6be-80adbff4be49]
22-
description = "when the element is in the set"
22+
description = "Sets can report if they contain an element -> when the element is in the set"
2323

2424
[93423fc0-44d0-4bc0-a2ac-376de8d7af34]
25-
description = "when the element is not in the set"
25+
description = "Sets can report if they contain an element -> when the element is not in the set"
2626

2727
[c392923a-637b-4495-b28e-34742cd6157a]
28-
description = "empty set is a subset of another empty set"
28+
description = "A set is a subset if all of its elements are contained in the other set -> empty set is a subset of another empty set"
2929

3030
[5635b113-be8c-4c6f-b9a9-23c485193917]
31-
description = "empty set is a subset of non-empty set"
31+
description = "A set is a subset if all of its elements are contained in the other set -> empty set is a subset of non-empty set"
3232

3333
[832eda58-6d6e-44e2-92c2-be8cf0173cee]
34-
description = "non-empty set is not a subset of empty set"
34+
description = "A set is a subset if all of its elements are contained in the other set -> non-empty set is not a subset of empty set"
3535

3636
[c830c578-8f97-4036-b082-89feda876131]
37-
description = "set is a subset of set with exact same elements"
37+
description = "A set is a subset if all of its elements are contained in the other set -> set is a subset of set with exact same elements"
3838

3939
[476a4a1c-0fd1-430f-aa65-5b70cbc810c5]
40-
description = "set is a subset of larger set with same elements"
40+
description = "A set is a subset if all of its elements are contained in the other set -> set is a subset of larger set with same elements"
4141

4242
[d2498999-3e46-48e4-9660-1e20c3329d3d]
43-
description = "set is not a subset of set that does not contain its elements"
43+
description = "A set is a subset if all of its elements are contained in the other set -> set is not a subset of set that does not contain its elements"
4444

4545
[7d38155e-f472-4a7e-9ad8-5c1f8f95e4cc]
46-
description = "the empty set is disjoint with itself"
46+
description = "Sets are disjoint if they share no elements -> the empty set is disjoint with itself"
4747

4848
[7a2b3938-64b6-4b32-901a-fe16891998a6]
49-
description = "empty set is disjoint with non-empty set"
49+
description = "Sets are disjoint if they share no elements -> empty set is disjoint with non-empty set"
5050

5151
[589574a0-8b48-48ea-88b0-b652c5fe476f]
52-
description = "non-empty set is disjoint with empty set"
52+
description = "Sets are disjoint if they share no elements -> non-empty set is disjoint with empty set"
5353

5454
[febeaf4f-f180-4499-91fa-59165955a523]
55-
description = "sets are not disjoint if they share an element"
55+
description = "Sets are disjoint if they share no elements -> sets are not disjoint if they share an element"
5656

5757
[0de20d2f-c952-468a-88c8-5e056740f020]
58-
description = "sets are disjoint if they share no elements"
58+
description = "Sets are disjoint if they share no elements -> sets are disjoint if they share no elements"
5959

6060
[4bd24adb-45da-4320-9ff6-38c044e9dff8]
61-
description = "empty sets are equal"
61+
description = "Sets with the same elements are equal -> empty sets are equal"
6262

6363
[f65c0a0e-6632-4b2d-b82c-b7c6da2ec224]
64-
description = "empty set is not equal to non-empty set"
64+
description = "Sets with the same elements are equal -> empty set is not equal to non-empty set"
6565

6666
[81e53307-7683-4b1e-a30c-7e49155fe3ca]
67-
description = "non-empty set is not equal to empty set"
67+
description = "Sets with the same elements are equal -> non-empty set is not equal to empty set"
6868

6969
[d57c5d7c-a7f3-48cc-a162-6b488c0fbbd0]
70-
description = "sets with the same elements are equal"
70+
description = "Sets with the same elements are equal -> sets with the same elements are equal"
7171

7272
[dd61bafc-6653-42cc-961a-ab071ee0ee85]
73-
description = "sets with different elements are not equal"
73+
description = "Sets with the same elements are equal -> sets with different elements are not equal"
7474

7575
[06059caf-9bf4-425e-aaff-88966cb3ea14]
76-
description = "set is not equal to larger set with same elements"
76+
description = "Sets with the same elements are equal -> set is not equal to larger set with same elements"
77+
78+
[d4a1142f-09aa-4df9-8b83-4437dcf7ec24]
79+
description = "Sets with the same elements are equal -> set is equal to a set constructed from an array with duplicates"
7780

7881
[8a677c3c-a658-4d39-bb88-5b5b1a9659f4]
79-
description = "add to empty set"
82+
description = "Unique elements can be added to a set -> add to empty set"
8083

8184
[0903dd45-904d-4cf2-bddd-0905e1a8d125]
82-
description = "add to non-empty set"
85+
description = "Unique elements can be added to a set -> add to non-empty set"
8386

8487
[b0eb7bb7-5e5d-4733-b582-af771476cb99]
85-
description = "adding an existing element does not change the set"
88+
description = "Unique elements can be added to a set -> adding an existing element does not change the set"
8689

8790
[893d5333-33b8-4151-a3d4-8f273358208a]
88-
description = "intersection of two empty sets is an empty set"
91+
description = "Intersection returns a set of all shared elements -> intersection of two empty sets is an empty set"
8992

9093
[d739940e-def2-41ab-a7bb-aaf60f7d782c]
91-
description = "intersection of an empty set and non-empty set is an empty set"
94+
description = "Intersection returns a set of all shared elements -> intersection of an empty set and non-empty set is an empty set"
9295

9396
[3607d9d8-c895-4d6f-ac16-a14956e0a4b7]
94-
description = "intersection of a non-empty set and an empty set is an empty set"
97+
description = "Intersection returns a set of all shared elements -> intersection of a non-empty set and an empty set is an empty set"
9598

9699
[b5120abf-5b5e-41ab-aede-4de2ad85c34e]
97-
description = "intersection of two sets with no shared elements is an empty set"
100+
description = "Intersection returns a set of all shared elements -> intersection of two sets with no shared elements is an empty set"
98101

99102
[af21ca1b-fac9-499c-81c0-92a591653d49]
100-
description = "intersection of two sets with shared elements is a set of the shared elements"
103+
description = "Intersection returns a set of all shared elements -> intersection of two sets with shared elements is a set of the shared elements"
101104

102105
[c5e6e2e4-50e9-4bc2-b89f-c518f015b57e]
103-
description = "difference of two empty sets is an empty set"
106+
description = "Difference (or Complement) of a set is a set of all elements that are only in the first set -> difference of two empty sets is an empty set"
104107

105108
[2024cc92-5c26-44ed-aafd-e6ca27d6fcd2]
106-
description = "difference of empty set and non-empty set is an empty set"
109+
description = "Difference (or Complement) of a set is a set of all elements that are only in the first set -> difference of empty set and non-empty set is an empty set"
107110

108111
[e79edee7-08aa-4c19-9382-f6820974b43e]
109-
description = "difference of a non-empty set and an empty set is the non-empty set"
112+
description = "Difference (or Complement) of a set is a set of all elements that are only in the first set -> difference of a non-empty set and an empty set is the non-empty set"
110113

111114
[c5ac673e-d707-4db5-8d69-7082c3a5437e]
112-
description = "difference of two non-empty sets is a set of elements that are only in the first set"
115+
description = "Difference (or Complement) of a set is a set of all elements that are only in the first set -> difference of two non-empty sets is a set of elements that are only in the first set"
116+
117+
[20d0a38f-7bb7-4c4a-ac15-90c7392ecf2b]
118+
description = "Difference (or Complement) of a set is a set of all elements that are only in the first set -> difference removes all duplicates in the first set"
113119

114120
[c45aed16-5494-455a-9033-5d4c93589dc6]
115-
description = "union of empty sets is an empty set"
121+
description = "Union returns a set of all elements in either set -> union of empty sets is an empty set"
116122

117123
[9d258545-33c2-4fcb-a340-9f8aa69e7a41]
118-
description = "union of an empty set and non-empty set is the non-empty set"
124+
description = "Union returns a set of all elements in either set -> union of an empty set and non-empty set is the non-empty set"
119125

120126
[3aade50c-80c7-4db8-853d-75bac5818b83]
121-
description = "union of a non-empty set and empty set is the non-empty set"
127+
description = "Union returns a set of all elements in either set -> union of a non-empty set and empty set is the non-empty set"
122128

123129
[a00bb91f-c4b4-4844-8f77-c73e2e9df77c]
124-
description = "union of non-empty sets contains all unique elements"
130+
description = "Union returns a set of all elements in either set -> union of non-empty sets contains all unique elements"

exercises/practice/dnd-character/.meta/tests.toml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,52 +10,52 @@
1010
# is regenerated, comments can be added via a `comment` key.
1111

1212
[1e9ae1dc-35bd-43ba-aa08-e4b94c20fa37]
13-
description = "ability modifier for score 3 is -4"
13+
description = "ability modifier -> ability modifier for score 3 is -4"
1414

1515
[cc9bb24e-56b8-4e9e-989d-a0d1a29ebb9c]
16-
description = "ability modifier for score 4 is -3"
16+
description = "ability modifier -> ability modifier for score 4 is -3"
1717

1818
[5b519fcd-6946-41ee-91fe-34b4f9808326]
19-
description = "ability modifier for score 5 is -3"
19+
description = "ability modifier -> ability modifier for score 5 is -3"
2020

2121
[dc2913bd-6d7a-402e-b1e2-6d568b1cbe21]
22-
description = "ability modifier for score 6 is -2"
22+
description = "ability modifier -> ability modifier for score 6 is -2"
2323

2424
[099440f5-0d66-4b1a-8a10-8f3a03cc499f]
25-
description = "ability modifier for score 7 is -2"
25+
description = "ability modifier -> ability modifier for score 7 is -2"
2626

2727
[cfda6e5c-3489-42f0-b22b-4acb47084df0]
28-
description = "ability modifier for score 8 is -1"
28+
description = "ability modifier -> ability modifier for score 8 is -1"
2929

3030
[c70f0507-fa7e-4228-8463-858bfbba1754]
31-
description = "ability modifier for score 9 is -1"
31+
description = "ability modifier -> ability modifier for score 9 is -1"
3232

3333
[6f4e6c88-1cd9-46a0-92b8-db4a99b372f7]
34-
description = "ability modifier for score 10 is 0"
34+
description = "ability modifier -> ability modifier for score 10 is 0"
3535

3636
[e00d9e5c-63c8-413f-879d-cd9be9697097]
37-
description = "ability modifier for score 11 is 0"
37+
description = "ability modifier -> ability modifier for score 11 is 0"
3838

3939
[eea06f3c-8de0-45e7-9d9d-b8cab4179715]
40-
description = "ability modifier for score 12 is +1"
40+
description = "ability modifier -> ability modifier for score 12 is +1"
4141

4242
[9c51f6be-db72-4af7-92ac-b293a02c0dcd]
43-
description = "ability modifier for score 13 is +1"
43+
description = "ability modifier -> ability modifier for score 13 is +1"
4444

4545
[94053a5d-53b6-4efc-b669-a8b5098f7762]
46-
description = "ability modifier for score 14 is +2"
46+
description = "ability modifier -> ability modifier for score 14 is +2"
4747

4848
[8c33e7ca-3f9f-4820-8ab3-65f2c9e2f0e2]
49-
description = "ability modifier for score 15 is +2"
49+
description = "ability modifier -> ability modifier for score 15 is +2"
5050

5151
[c3ec871e-1791-44d0-b3cc-77e5fb4cd33d]
52-
description = "ability modifier for score 16 is +3"
52+
description = "ability modifier -> ability modifier for score 16 is +3"
5353

5454
[3d053cee-2888-4616-b9fd-602a3b1efff4]
55-
description = "ability modifier for score 17 is +3"
55+
description = "ability modifier -> ability modifier for score 17 is +3"
5656

5757
[bafd997a-e852-4e56-9f65-14b60261faee]
58-
description = "ability modifier for score 18 is +4"
58+
description = "ability modifier -> ability modifier for score 18 is +4"
5959

6060
[4f28f19c-2e47-4453-a46a-c0d365259c14]
6161
description = "random ability is within range"
@@ -65,3 +65,8 @@ description = "random character is valid"
6565

6666
[2ca77b9b-c099-46c3-a02c-0d0f68ffa0fe]
6767
description = "each ability is only calculated once"
68+
include = false
69+
70+
[dca2b2ec-f729-4551-84b9-078876bb4808]
71+
description = "each ability is only calculated once"
72+
reimplements = "2ca77b9b-c099-46c3-a02c-0d0f68ffa0fe"

exercises/practice/forth/.meta/tests.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ description = "addition -> errors if there is nothing on the stack"
2424
[06efb9a4-817a-435e-b509-06166993c1b8]
2525
description = "addition -> errors if there is only one value on the stack"
2626

27+
[1e07a098-c5fa-4c66-97b2-3c81205dbc2f]
28+
description = "addition -> more than two values on the stack"
29+
2730
[09687c99-7bbc-44af-8526-e402f997ccbf]
2831
description = "subtraction -> can subtract two numbers"
2932

@@ -33,6 +36,9 @@ description = "subtraction -> errors if there is nothing on the stack"
3336
[b3cee1b2-9159-418a-b00d-a1bb3765c23b]
3437
description = "subtraction -> errors if there is only one value on the stack"
3538

39+
[2c8cc5ed-da97-4cb1-8b98-fa7b526644f4]
40+
description = "subtraction -> more than two values on the stack"
41+
3642
[5df0ceb5-922e-401f-974d-8287427dbf21]
3743
description = "multiplication -> can multiply two numbers"
3844

@@ -42,6 +48,9 @@ description = "multiplication -> errors if there is nothing on the stack"
4248
[8ba4b432-9f94-41e0-8fae-3b3712bd51b3]
4349
description = "multiplication -> errors if there is only one value on the stack"
4450

51+
[5cd085b5-deb1-43cc-9c17-6b1c38bc9970]
52+
description = "multiplication -> more than two values on the stack"
53+
4554
[e74c2204-b057-4cff-9aa9-31c7c97a93f5]
4655
description = "division -> can divide two numbers"
4756

@@ -57,12 +66,21 @@ description = "division -> errors if there is nothing on the stack"
5766
[d5547f43-c2ff-4d5c-9cb0-2a4f6684c20d]
5867
description = "division -> errors if there is only one value on the stack"
5968

69+
[f224f3e0-b6b6-4864-81de-9769ecefa03f]
70+
description = "division -> more than two values on the stack"
71+
6072
[ee28d729-6692-4a30-b9be-0d830c52a68c]
6173
description = "combined arithmetic -> addition and subtraction"
6274

6375
[40b197da-fa4b-4aca-a50b-f000d19422c1]
6476
description = "combined arithmetic -> multiplication and division"
6577

78+
[f749b540-53aa-458e-87ec-a70797eddbcb]
79+
description = "combined arithmetic -> multiplication and addition"
80+
81+
[c8e5a4c2-f9bf-4805-9a35-3c3314e4989a]
82+
description = "combined arithmetic -> addition and multiplication"
83+
6684
[c5758235-6eef-4bf6-ab62-c878e50b9957]
6785
description = "dup -> copies a value on the stack"
6886

0 commit comments

Comments
 (0)