Skip to content

Commit 5269cf0

Browse files
authored
sync tests (#778)
1 parent 9eabe6a commit 5269cf0

6 files changed

Lines changed: 59 additions & 3 deletions

File tree

exercises/practice/flower-field/.meta/tests.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ description = "cross"
4646

4747
[dd9d4ca8-9e68-4f78-a677-a2a70fd7a7b8]
4848
description = "large garden"
49+
50+
[6e4ac13a-3e43-4728-a2e3-3551d4b1a996]
51+
description = "multiple adjacent flowers"

exercises/practice/flower-field/tests/Tests.elm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,8 @@ tests =
105105
112*4*
106106
1*22*2
107107
111111"""
108+
, skip <|
109+
test "multiple adjacent flowers" <|
110+
\() ->
111+
FlowerField.annotate " ** " |> Expect.equal "1**1"
108112
]

exercises/practice/two-bucket/.meta/tests.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ description = "Measure one step using bucket one of size 1 and bucket two of siz
2727
[eb329c63-5540-4735-b30b-97f7f4df0f84]
2828
description = "Measure using bucket one of size 2 and bucket two of size 3 - start with bucket one and end with bucket two"
2929

30+
[58d70152-bf2b-46bb-ad54-be58ebe94c03]
31+
description = "Measure using bucket one much bigger than bucket two"
32+
33+
[9dbe6499-caa5-4a58-b5ce-c988d71b8981]
34+
description = "Measure using bucket one much smaller than bucket two"
35+
3036
[449be72d-b10a-4f4b-a959-ca741e333b72]
3137
description = "Not possible to reach the goal"
3238

exercises/practice/two-bucket/tests/Tests.elm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ tests =
3838
\() ->
3939
TwoBucket.measure 2 3 3 One
4040
|> Expect.equal (Just { moves = 2, bucketOne = 2, bucketTwo = 3 })
41+
, skip <|
42+
test "Measure using bucket one much bigger than bucket two" <|
43+
\() ->
44+
TwoBucket.measure 5 1 2 One
45+
|> Expect.equal (Just { moves = 6, bucketOne = 2, bucketTwo = 1 })
46+
, skip <|
47+
test "Measure using bucket one much smaller than bucket two" <|
48+
\() ->
49+
TwoBucket.measure 3 15 9 One
50+
|> Expect.equal (Just { moves = 6, bucketOne = 0, bucketTwo = 9 })
4151
, skip <|
4252
test "Not possible to reach the goal" <|
4353
\() ->

exercises/practice/wordy/.meta/tests.toml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
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
[88bf4b28-0de3-4883-93c7-db1b14aa806e]
613
description = "just a number"
714

15+
[18983214-1dfc-4ebd-ac77-c110dde699ce]
16+
description = "just a zero"
17+
18+
[607c08ee-2241-4288-916d-dae5455c87e6]
19+
description = "just a negative number"
20+
821
[bb8c655c-cf42-4dfc-90e0-152fcfd8d4e0]
922
description = "addition"
1023

24+
[bb9f2082-171c-46ad-ad4e-c3f72087c1b5]
25+
description = "addition with a left hand zero"
26+
27+
[6fa05f17-405a-4742-80ae-5d1a8edb0d5d]
28+
description = "addition with a right hand zero"
29+
1130
[79e49e06-c5ae-40aa-a352-7a3a01f70015]
1231
description = "more addition"
1332

exercises/practice/wordy/tests/Tests.elm

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,24 @@ tests =
1111
[ test "just a number" <|
1212
\() ->
1313
Expect.equal (Just 5) <| answer "What is 5?"
14+
, test "just a zero" <|
15+
\() ->
16+
Expect.equal (Just 0) <| answer "What is 0?"
17+
, test "just a negative number" <|
18+
\() ->
19+
Expect.equal (Just -123) <| answer "What is -123?"
1420
, skip <|
1521
test "addition" <|
1622
\() ->
1723
Expect.equal (Just 2) <| answer "What is 1 plus 1?"
24+
, skip <|
25+
test "addition with a left hand zero" <|
26+
\() ->
27+
Expect.equal (Just 2) <| answer "What is 0 plus 2?"
28+
, skip <|
29+
test "addition with a right hand zero" <|
30+
\() ->
31+
Expect.equal (Just 3) <| answer "What is 3 plus 0?"
1832
, skip <|
1933
test "more addition" <|
2034
\() ->

0 commit comments

Comments
 (0)