Skip to content

Commit dae9d17

Browse files
committed
Sync tests not needing example updates
1 parent 42f3989 commit dae9d17

8 files changed

Lines changed: 198 additions & 104 deletions

File tree

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

Lines changed: 46 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,82 +9,85 @@
99
# As user-added comments (using the # character) will be removed when this file
1010
# is regenerated, comments can be added via a `comment` key.
1111

12-
[e162fead-606f-437a-a166-d051915cea8e]
13-
description = "stating something"
12+
[8a2e771d-d6f1-4e3f-b6c6-b41495556e37]
13+
description = "asking a question"
1414

1515
[73a966dc-8017-47d6-bb32-cf07d1a5fcd9]
1616
description = "shouting"
1717

18-
[d6c98afd-df35-4806-b55e-2c457c3ab748]
19-
description = "shouting gibberish"
18+
[a5193c61-4a92-4f68-93e2-f554eb385ec6]
19+
description = "forceful question"
2020

21-
[8a2e771d-d6f1-4e3f-b6c6-b41495556e37]
22-
description = "asking a question"
21+
[bc39f7c6-f543-41be-9a43-fd1c2f753fc0]
22+
description = "silence"
23+
24+
[e162fead-606f-437a-a166-d051915cea8e]
25+
description = "stating something"
2326

2427
[81080c62-4e4d-4066-b30a-48d8d76920d9]
2528
description = "asking a numeric question"
2629

2730
[2a02716d-685b-4e2e-a804-2adaf281c01e]
2831
description = "asking gibberish"
2932

30-
[c02f9179-ab16-4aa7-a8dc-940145c385f7]
31-
description = "talking forcefully"
33+
[bb0011c5-cd52-4a5b-8bfb-a87b6283b0e2]
34+
description = "question with no letters"
3235

33-
[153c0e25-9bb5-4ec5-966e-598463658bcd]
34-
description = "using acronyms in regular speech"
36+
[9bfc677d-ea3a-45f2-be44-35bc8fa3753e]
37+
description = "non-letters with question"
3538

36-
[a5193c61-4a92-4f68-93e2-f554eb385ec6]
37-
description = "forceful question"
39+
[8608c508-f7de-4b17-985b-811878b3cf45]
40+
description = "prattling on"
3841

39-
[a20e0c54-2224-4dde-8b10-bd2cdd4f61bc]
40-
description = "shouting numbers"
42+
[05b304d6-f83b-46e7-81e0-4cd3ca647900]
43+
description = "ending with whitespace"
4144

42-
[f7bc4b92-bdff-421e-a238-ae97f230ccac]
43-
description = "no letters"
45+
[66953780-165b-4e7e-8ce3-4bcb80b6385a]
46+
description = "multiple line question"
47+
include = false
4448

45-
[bb0011c5-cd52-4a5b-8bfb-a87b6283b0e2]
46-
description = "question with no letters"
49+
[2c7278ac-f955-4eb4-bf8f-e33eb4116a15]
50+
description = "multiple line question"
51+
reimplements = "66953780-165b-4e7e-8ce3-4bcb80b6385a"
52+
53+
[d6c98afd-df35-4806-b55e-2c457c3ab748]
54+
description = "shouting gibberish"
55+
56+
[3c954328-86fb-4c71-8961-e18d6a5e2517]
57+
description = "shouting a statement containing a question mark"
58+
59+
[a20e0c54-2224-4dde-8b10-bd2cdd4f61bc]
60+
description = "shouting numbers"
4761

4862
[496143c8-1c31-4c01-8a08-88427af85c66]
4963
description = "shouting with special characters"
5064

5165
[e6793c1c-43bd-4b8d-bc11-499aea73925f]
5266
description = "shouting with no exclamation mark"
5367

54-
[aa8097cc-c548-4951-8856-14a404dd236a]
55-
description = "statement containing question mark"
56-
57-
[9bfc677d-ea3a-45f2-be44-35bc8fa3753e]
58-
description = "non-letters with question"
59-
60-
[8608c508-f7de-4b17-985b-811878b3cf45]
61-
description = "prattling on"
62-
63-
[bc39f7c6-f543-41be-9a43-fd1c2f753fc0]
64-
description = "silence"
65-
6668
[d6c47565-372b-4b09-b1dd-c40552b8378b]
6769
description = "prolonged silence"
6870

6971
[4428f28d-4100-4d85-a902-e5a78cb0ecd3]
7072
description = "alternate silence"
7173

72-
[66953780-165b-4e7e-8ce3-4bcb80b6385a]
73-
description = "multiple line question"
74-
include = false
74+
[72bd5ad3-9b2f-4931-a988-dce1f5771de2]
75+
description = "other whitespace"
7576

76-
[5371ef75-d9ea-4103-bcfa-2da973ddec1b]
77-
description = "starting with whitespace"
77+
[c02f9179-ab16-4aa7-a8dc-940145c385f7]
78+
description = "talking forcefully"
7879

79-
[05b304d6-f83b-46e7-81e0-4cd3ca647900]
80-
description = "ending with whitespace"
80+
[153c0e25-9bb5-4ec5-966e-598463658bcd]
81+
description = "using acronyms in regular speech"
8182

82-
[72bd5ad3-9b2f-4931-a988-dce1f5771de2]
83-
description = "other whitespace"
83+
[f7bc4b92-bdff-421e-a238-ae97f230ccac]
84+
description = "no letters"
85+
86+
[aa8097cc-c548-4951-8856-14a404dd236a]
87+
description = "statement containing question mark"
88+
89+
[5371ef75-d9ea-4103-bcfa-2da973ddec1b]
90+
description = "starting with whitespace"
8491

8592
[12983553-8601-46a8-92fa-fcaa3bc4a2a0]
8693
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/bob/BobTests.fs

Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,24 @@ open Xunit
66
open Bob
77

88
[<Fact>]
9-
let ``Stating something`` () =
10-
response "Tom-ay-to, tom-aaaah-to." |> should equal "Whatever."
9+
let ``Asking a question`` () =
10+
response "Does this cryogenic chamber make me look fat?" |> should equal "Sure."
1111

1212
[<Fact(Skip = "Remove this Skip property to run this test")>]
1313
let ``Shouting`` () =
1414
response "WATCH OUT!" |> should equal "Whoa, chill out!"
1515

1616
[<Fact(Skip = "Remove this Skip property to run this test")>]
17-
let ``Shouting gibberish`` () =
18-
response "FCECDFCAAB" |> should equal "Whoa, chill out!"
17+
let ``Forceful question`` () =
18+
response "WHAT'S GOING ON?" |> should equal "Calm down, I know what I'm doing!"
1919

2020
[<Fact(Skip = "Remove this Skip property to run this test")>]
21-
let ``Asking a question`` () =
22-
response "Does this cryogenic chamber make me look fat?" |> should equal "Sure."
21+
let ``Silence`` () =
22+
response "" |> should equal "Fine. Be that way!"
23+
24+
[<Fact(Skip = "Remove this Skip property to run this test")>]
25+
let ``Stating something`` () =
26+
response "Tom-ay-to, tom-aaaah-to." |> should equal "Whatever."
2327

2428
[<Fact(Skip = "Remove this Skip property to run this test")>]
2529
let ``Asking a numeric question`` () =
@@ -30,28 +34,36 @@ let ``Asking gibberish`` () =
3034
response "fffbbcbeab?" |> should equal "Sure."
3135

3236
[<Fact(Skip = "Remove this Skip property to run this test")>]
33-
let ``Talking forcefully`` () =
34-
response "Hi there!" |> should equal "Whatever."
37+
let ``Question with no letters`` () =
38+
response "4?" |> should equal "Sure."
3539

3640
[<Fact(Skip = "Remove this Skip property to run this test")>]
37-
let ``Using acronyms in regular speech`` () =
38-
response "It's OK if you don't want to go work for NASA." |> should equal "Whatever."
41+
let ``Non-letters with question`` () =
42+
response ":) ?" |> should equal "Sure."
3943

4044
[<Fact(Skip = "Remove this Skip property to run this test")>]
41-
let ``Forceful question`` () =
42-
response "WHAT'S GOING ON?" |> should equal "Calm down, I know what I'm doing!"
45+
let ``Prattling on`` () =
46+
response "Wait! Hang on. Are you going to be OK?" |> should equal "Sure."
4347

4448
[<Fact(Skip = "Remove this Skip property to run this test")>]
45-
let ``Shouting numbers`` () =
46-
response "1, 2, 3 GO!" |> should equal "Whoa, chill out!"
49+
let ``Ending with whitespace`` () =
50+
response "Okay if like my spacebar quite a bit? " |> should equal "Sure."
4751

4852
[<Fact(Skip = "Remove this Skip property to run this test")>]
49-
let ``No letters`` () =
50-
response "1, 2, 3" |> should equal "Whatever."
53+
let ``Multiple line question`` () =
54+
response "\nDoes this cryogenic chamber make\n me look fat?" |> should equal "Sure."
5155

5256
[<Fact(Skip = "Remove this Skip property to run this test")>]
53-
let ``Question with no letters`` () =
54-
response "4?" |> should equal "Sure."
57+
let ``Shouting gibberish`` () =
58+
response "FCECDFCAAB" |> should equal "Whoa, chill out!"
59+
60+
[<Fact(Skip = "Remove this Skip property to run this test")>]
61+
let ``Shouting a statement containing a question mark`` () =
62+
response "DO LIONS EAT PEOPLE? AHHHHH." |> should equal "Whoa, chill out!"
63+
64+
[<Fact(Skip = "Remove this Skip property to run this test")>]
65+
let ``Shouting numbers`` () =
66+
response "1, 2, 3 GO!" |> should equal "Whoa, chill out!"
5567

5668
[<Fact(Skip = "Remove this Skip property to run this test")>]
5769
let ``Shouting with special characters`` () =
@@ -62,46 +74,38 @@ let ``Shouting with no exclamation mark`` () =
6274
response "I HATE THE DENTIST" |> should equal "Whoa, chill out!"
6375

6476
[<Fact(Skip = "Remove this Skip property to run this test")>]
65-
let ``Statement containing question mark`` () =
66-
response "Ending with ? means a question." |> should equal "Whatever."
67-
68-
[<Fact(Skip = "Remove this Skip property to run this test")>]
69-
let ``Non-letters with question`` () =
70-
response ":) ?" |> should equal "Sure."
77+
let ``Prolonged silence`` () =
78+
response " " |> should equal "Fine. Be that way!"
7179

7280
[<Fact(Skip = "Remove this Skip property to run this test")>]
73-
let ``Prattling on`` () =
74-
response "Wait! Hang on. Are you going to be OK?" |> should equal "Sure."
81+
let ``Alternate silence`` () =
82+
response "\t\t\t\t\t\t\t\t\t\t" |> should equal "Fine. Be that way!"
7583

7684
[<Fact(Skip = "Remove this Skip property to run this test")>]
77-
let ``Silence`` () =
78-
response "" |> should equal "Fine. Be that way!"
85+
let ``Other whitespace`` () =
86+
response "\n\r \t" |> should equal "Fine. Be that way!"
7987

8088
[<Fact(Skip = "Remove this Skip property to run this test")>]
81-
let ``Prolonged silence`` () =
82-
response " " |> should equal "Fine. Be that way!"
89+
let ``Talking forcefully`` () =
90+
response "Hi there!" |> should equal "Whatever."
8391

8492
[<Fact(Skip = "Remove this Skip property to run this test")>]
85-
let ``Alternate silence`` () =
86-
response "\t\t\t\t\t\t\t\t\t\t" |> should equal "Fine. Be that way!"
93+
let ``Using acronyms in regular speech`` () =
94+
response "It's OK if you don't want to go work for NASA." |> should equal "Whatever."
8795

8896
[<Fact(Skip = "Remove this Skip property to run this test")>]
89-
let ``Starting with whitespace`` () =
90-
response " hmmmmmmm..." |> should equal "Whatever."
97+
let ``No letters`` () =
98+
response "1, 2, 3" |> should equal "Whatever."
9199

92100
[<Fact(Skip = "Remove this Skip property to run this test")>]
93-
let ``Ending with whitespace`` () =
94-
response "Okay if like my spacebar quite a bit? " |> should equal "Sure."
101+
let ``Statement containing question mark`` () =
102+
response "Ending with ? means a question." |> should equal "Whatever."
95103

96104
[<Fact(Skip = "Remove this Skip property to run this test")>]
97-
let ``Other whitespace`` () =
98-
response "\n\r \t" |> should equal "Fine. Be that way!"
105+
let ``Starting with whitespace`` () =
106+
response " hmmmmmmm..." |> should equal "Whatever."
99107

100108
[<Fact(Skip = "Remove this Skip property to run this test")>]
101109
let ``Non-question ending with whitespace`` () =
102110
response "This is a statement ending with whitespace " |> should equal "Whatever."
103111

104-
[<Fact(Skip = "Remove this Skip property to run this test")>]
105-
let ``Multiple line question`` () =
106-
response "\nDoes this cryogenic chamber make\n me look fat?" |> should equal "Sure."
107-

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

Lines changed: 16 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"
@@ -23,6 +30,12 @@ description = "nobody wins crossing adjacent angles"
2330
[cd61c143-92f6-4a8d-84d9-cb2b359e226b]
2431
description = "X wins crossing from left to right"
2532

33+
[495e33ed-30a9-4012-b46e-d7c4d5fe13c3]
34+
description = "X wins with left-hand dead end fork"
35+
36+
[ab167ab0-4a98-4d0f-a1c0-e1cddddc3d58]
37+
description = "X wins with right-hand dead end fork"
38+
2639
[73d1eda6-16ab-4460-9904-b5f5dd401d0b]
2740
description = "O wins crossing from top to bottom"
2841

exercises/practice/connect/ConnectTests.fs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,24 @@ let ``X wins crossing from left to right`` () =
6464
" . O X ." ]
6565
winner board |> should equal (Some Black)
6666

67+
[<Fact(Skip = "Remove this Skip property to run this test")>]
68+
let ``X wins with left-hand dead end fork`` () =
69+
let board =
70+
[ ". . X . ";
71+
" X X . . ";
72+
" . X X X ";
73+
" O O O O" ]
74+
winner board |> should equal (Some Black)
75+
76+
[<Fact(Skip = "Remove this Skip property to run this test")>]
77+
let ``X wins with right-hand dead end fork`` () =
78+
let board =
79+
[ ". . X X ";
80+
" X X . . ";
81+
" . X X . ";
82+
" O O O O" ]
83+
winner board |> should equal (Some Black)
84+
6785
[<Fact(Skip = "Remove this Skip property to run this test")>]
6886
let ``O wins crossing from top to bottom`` () =
6987
let board =

exercises/practice/line-up/.meta/tests.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,24 @@ description = "format non-exceptional ordinal numeral 13"
5151
[2bdcebc5-c029-4874-b6cc-e9bec80d603a]
5252
description = "format exceptional ordinal numeral 21"
5353

54+
[a98e2e22-ab41-4557-a7c2-efedc19c16da]
55+
description = "format exceptional ordinal numeral 22 ending in nd even though it is a multiple of 11"
56+
57+
[ab45d2fb-e0ee-4016-b605-76917584db0a]
58+
description = "format exceptional ordinal numeral 33 ending in rd even though it is a multiple of 11"
59+
60+
[c9243603-9f17-45b3-9a41-db9ebdbf08e1]
61+
description = "format exceptional ordinal numeral 52 ending in nd even though it is a multiple of 13"
62+
5463
[74ee2317-0295-49d2-baf0-d56bcefa14e3]
5564
description = "format exceptional ordinal numeral 62"
5665

66+
[3f6c408c-4331-42b6-bb6c-3ad0823e568a]
67+
description = "format non-exceptional ordinal numeral 72 ending in nd even though it is a multiple of 12"
68+
69+
[8db52cd9-9689-413f-a812-6c36fcfd0d07]
70+
description = "format exceptional ordinal numeral 91 ending in st even though it is a multiple of 13"
71+
5772
[b37c332d-7f68-40e3-8503-e43cbd67a0c4]
5873
description = "format exceptional ordinal numeral 100"
5974

@@ -65,3 +80,6 @@ description = "format non-exceptional ordinal numeral 112"
6580

6681
[06b62efe-199e-4ce7-970d-4bf73945713f]
6782
description = "format exceptional ordinal numeral 123"
83+
84+
[6792c54e-59a7-4faf-839a-c4bb61014229]
85+
description = "format large number 972 ending in nd even though it is a multiple of 12"

exercises/practice/line-up/LineUpTests.fs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,30 @@ let ``Format non-exceptional ordinal numeral 13`` () =
6161
let ``Format exceptional ordinal numeral 21`` () =
6262
format "Washi" 21 |> should equal "Washi, you are the 21st customer we serve today. Thank you!"
6363

64+
[<Fact(Skip = "Remove this Skip property to run this test")>]
65+
let ``Format exceptional ordinal numeral 22 ending in nd even though it is a multiple of 11`` () =
66+
format "Ingrid" 22 |> should equal "Ingrid, you are the 22nd customer we serve today. Thank you!"
67+
68+
[<Fact(Skip = "Remove this Skip property to run this test")>]
69+
let ``Format exceptional ordinal numeral 33 ending in rd even though it is a multiple of 11`` () =
70+
format "Mario" 33 |> should equal "Mario, you are the 33rd customer we serve today. Thank you!"
71+
72+
[<Fact(Skip = "Remove this Skip property to run this test")>]
73+
let ``Format exceptional ordinal numeral 52 ending in nd even though it is a multiple of 13`` () =
74+
format "Quentin" 52 |> should equal "Quentin, you are the 52nd customer we serve today. Thank you!"
75+
6476
[<Fact(Skip = "Remove this Skip property to run this test")>]
6577
let ``Format exceptional ordinal numeral 62`` () =
6678
format "Nayra" 62 |> should equal "Nayra, you are the 62nd customer we serve today. Thank you!"
6779

80+
[<Fact(Skip = "Remove this Skip property to run this test")>]
81+
let ``Format non-exceptional ordinal numeral 72 ending in nd even though it is a multiple of 12`` () =
82+
format "Ugo" 72 |> should equal "Ugo, you are the 72nd customer we serve today. Thank you!"
83+
84+
[<Fact(Skip = "Remove this Skip property to run this test")>]
85+
let ``Format exceptional ordinal numeral 91 ending in st even though it is a multiple of 13`` () =
86+
format "Boris" 91 |> should equal "Boris, you are the 91st customer we serve today. Thank you!"
87+
6888
[<Fact(Skip = "Remove this Skip property to run this test")>]
6989
let ``Format exceptional ordinal numeral 100`` () =
7090
format "John" 100 |> should equal "John, you are the 100th customer we serve today. Thank you!"
@@ -81,3 +101,7 @@ let ``Format non-exceptional ordinal numeral 112`` () =
81101
let ``Format exceptional ordinal numeral 123`` () =
82102
format "Yma" 123 |> should equal "Yma, you are the 123rd customer we serve today. Thank you!"
83103

104+
[<Fact(Skip = "Remove this Skip property to run this test")>]
105+
let ``Format large number 972 ending in nd even though it is a multiple of 12`` () =
106+
format "Elias" 972 |> should equal "Elias, you are the 972nd customer we serve today. Thank you!"
107+

0 commit comments

Comments
 (0)