Skip to content

Commit 6b1bb12

Browse files
authored
Update tests say (#2727)
* Sync test.toml * Update test file * Configure config.json
1 parent 37c977d commit 6b1bb12

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

exercises/practice/say/.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
"ankorGH",
7+
"jagdish-15",
78
"msomji",
89
"rchavarria",
910
"ryanplusplus",

exercises/practice/say/.meta/tests.toml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
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
[5d22a120-ba0c-428c-bd25-8682235d83e8]
613
description = "zero"
@@ -17,12 +24,24 @@ description = "twenty"
1724
[d78601eb-4a84-4bfa-bf0e-665aeb8abe94]
1825
description = "twenty-two"
1926

27+
[f010d4ca-12c9-44e9-803a-27789841adb1]
28+
description = "thirty"
29+
30+
[738ce12d-ee5c-4dfb-ad26-534753a98327]
31+
description = "ninety-nine"
32+
2033
[e417d452-129e-4056-bd5b-6eb1df334dce]
2134
description = "one hundred"
2235

2336
[d6924f30-80ba-4597-acf6-ea3f16269da8]
2437
description = "one hundred twenty-three"
2538

39+
[2f061132-54bc-4fd4-b5df-0a3b778959b9]
40+
description = "two hundred"
41+
42+
[feed6627-5387-4d38-9692-87c0dbc55c33]
43+
description = "nine hundred ninety-nine"
44+
2645
[3d83da89-a372-46d3-b10d-de0c792432b3]
2746
description = "one thousand"
2847

exercises/practice/say/say.spec.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ describe('say', () => {
2222
expect(say(22)).toBe('twenty-two');
2323
});
2424

25+
xtest('thirty', () => {
26+
expect(say(30)).toBe('thirty');
27+
});
28+
29+
xtest('ninety-nine', () => {
30+
expect(say(99)).toBe('ninety-nine');
31+
});
32+
2533
xtest('one hundred', () => {
2634
expect(say(100)).toBe('one hundred');
2735
});
@@ -30,6 +38,14 @@ describe('say', () => {
3038
expect(say(123)).toBe('one hundred twenty-three');
3139
});
3240

41+
xtest('two hundred', () => {
42+
expect(say(200)).toBe('two hundred');
43+
});
44+
45+
xtest('nine hundred ninety-nine', () => {
46+
expect(say(999)).toBe('nine hundred ninety-nine');
47+
});
48+
3349
xtest('one thousand', () => {
3450
expect(say(1000)).toBe('one thousand');
3551
});

0 commit comments

Comments
 (0)