Skip to content

Commit 1eb6e56

Browse files
authored
sync wordy tests (#1598)
1 parent 268f8d5 commit 1eb6e56

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

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/test/wordy_test.exs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,31 @@ defmodule WordyTest do
66
assert Wordy.answer("What is 5?") == 5
77
end
88

9+
@tag :pending
10+
test "just a zero" do
11+
assert Wordy.answer("What is 0?") == 0
12+
end
13+
14+
@tag :pending
15+
test "just a negative number" do
16+
assert Wordy.answer("What is -123?") == -123
17+
end
18+
919
@tag :pending
1020
test "addition" do
1121
assert Wordy.answer("What is 1 plus 1?") == 2
1222
end
1323

24+
@tag :pending
25+
test "addition with a left hand zero" do
26+
assert Wordy.answer("What is 0 plus 2?") == 2
27+
end
28+
29+
@tag :pending
30+
test "addition with a right hand zero" do
31+
assert Wordy.answer("What is 3 plus 0?") == 3
32+
end
33+
1434
@tag :pending
1535
test "more addition" do
1636
assert Wordy.answer("What is 53 plus 2?") == 55

0 commit comments

Comments
 (0)