Skip to content

Commit e54d4eb

Browse files
committed
Sync wordy tests
1 parent 279fc73 commit e54d4eb

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-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/wordy.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,26 @@ describe('Wordy', () => {
66
expect(answer('What is 5?')).toEqual(5)
77
})
88

9+
xit('just a zero', () => {
10+
expect(answer('What is 0?')).toEqual(0)
11+
})
12+
13+
xit('just a negative number', () => {
14+
expect(answer('What is -123?')).toEqual(-123)
15+
})
16+
917
xit('addition', () => {
1018
expect(answer('What is 1 plus 1?')).toEqual(2)
1119
})
1220

21+
xit('addition with a left hand zero', () => {
22+
expect(answer('What is 0 plus 2?')).toEqual(2)
23+
})
24+
25+
xit('addition with a right hand zero', () => {
26+
expect(answer('What is 3 plus 0?')).toEqual(3)
27+
})
28+
1329
xit('more addition', () => {
1430
expect(answer('What is 53 plus 2?')).toEqual(55)
1531
})

0 commit comments

Comments
 (0)