Skip to content

Commit 66fe11c

Browse files
authored
Sync wordy tests (#2455)
1 parent e9363e5 commit 66fe11c

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,21 @@
1212
[88bf4b28-0de3-4883-93c7-db1b14aa806e]
1313
description = "just a number"
1414

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+
1521
[bb8c655c-cf42-4dfc-90e0-152fcfd8d4e0]
1622
description = "addition"
1723

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+
1830
[79e49e06-c5ae-40aa-a352-7a3a01f70015]
1931
description = "more addition"
2032

exercises/practice/wordy/WordyTests.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,36 @@ public void Just_a_number()
66
Assert.Equal(5, Wordy.Answer("What is 5?"));
77
}
88

9+
[Fact(Skip = "Remove this Skip property to run this test")]
10+
public void Just_a_zero()
11+
{
12+
Assert.Equal(0, Wordy.Answer("What is 0?"));
13+
}
14+
15+
[Fact(Skip = "Remove this Skip property to run this test")]
16+
public void Just_a_negative_number()
17+
{
18+
Assert.Equal(-123, Wordy.Answer("What is -123?"));
19+
}
20+
921
[Fact(Skip = "Remove this Skip property to run this test")]
1022
public void Addition()
1123
{
1224
Assert.Equal(2, Wordy.Answer("What is 1 plus 1?"));
1325
}
1426

27+
[Fact(Skip = "Remove this Skip property to run this test")]
28+
public void Addition_with_a_left_hand_zero()
29+
{
30+
Assert.Equal(2, Wordy.Answer("What is 0 plus 2?"));
31+
}
32+
33+
[Fact(Skip = "Remove this Skip property to run this test")]
34+
public void Addition_with_a_right_hand_zero()
35+
{
36+
Assert.Equal(3, Wordy.Answer("What is 3 plus 0?"));
37+
}
38+
1539
[Fact(Skip = "Remove this Skip property to run this test")]
1640
public void More_addition()
1741
{

0 commit comments

Comments
 (0)