Skip to content

Commit db38db3

Browse files
authored
Update tests wordy (#2748)
1 parent ebc7f4c commit db38db3

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

exercises/practice/wordy/.meta/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
],
55
"contributors": [
66
"hyuko21",
7+
"jagdish-15",
78
"msomji",
89
"ovidiu141",
910
"rchavarria",

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.spec.js

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+
xtest('just a zero', () => {
10+
expect(answer('What is 0?')).toEqual(0);
11+
});
12+
13+
xtest('just a negative number', () => {
14+
expect(answer('What is -123?')).toEqual(-123);
15+
});
16+
917
xtest('addition', () => {
1018
expect(answer('What is 1 plus 1?')).toEqual(2);
1119
});
1220

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

0 commit comments

Comments
 (0)