Skip to content

Commit c9d8dfa

Browse files
authored
Sync wordy with problem specifications (#537)
* Sync wordy with problem specifications * Fix duplicated content in tests.toml
1 parent c9ac407 commit c9d8dfa

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

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

Lines changed: 13 additions & 1 deletion
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

@@ -76,4 +88,4 @@ description = "reject two numbers in a row"
7688
description = "reject postfix notation"
7789

7890
[0035bc63-ac43-4bb5-ad6d-e8651b7d954e]
79-
description = "reject prefix notation"
91+
description = "reject prefix notation"

exercises/practice/wordy/WordyTests.vb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,31 @@ Public Class WordyTests
44
Assert.Equal(5, Answer("What is 5?"))
55
End Sub
66

7+
<Fact(Skip:="Remove this Skip property to run this test")>
8+
Public Sub Just_a_zero()
9+
Assert.Equal(0, Answer("What is 0?"))
10+
End Sub
11+
12+
<Fact(Skip:="Remove this Skip property to run this test")>
13+
Public Sub Just_a_negative_number()
14+
Assert.Equal(-123, Answer("What is -123?"))
15+
End Sub
16+
717
<Fact(Skip:="Remove this Skip property to run this test")>
818
Public Sub Addition()
919
Assert.Equal(2, Answer("What is 1 plus 1?"))
1020
End Sub
1121

22+
<Fact(Skip:="Remove this Skip property to run this test")>
23+
Public Sub Addition_with_a_left_hand_zero()
24+
Assert.Equal(2, Answer("What is 0 plus 2?"))
25+
End Sub
26+
27+
<Fact(Skip:="Remove this Skip property to run this test")>
28+
Public Sub Addition_with_a_right_hand_zero()
29+
Assert.Equal(3, Answer("What is 3 plus 0?"))
30+
End Sub
31+
1232
<Fact(Skip:="Remove this Skip property to run this test")>
1333
Public Sub More_addition()
1434
Assert.Equal(55, Answer("What is 53 plus 2?"))
@@ -113,4 +133,4 @@ Public Class WordyTests
113133
Public Sub Reject_prefix_notation()
114134
Assert.Throws(Of ArgumentException)(Function() Answer("What is plus 1 2?"))
115135
End Sub
116-
End Class
136+
End Class

0 commit comments

Comments
 (0)