Skip to content

Commit d20eded

Browse files
authored
Syncing test.toml and updating the test code (#2649)
[no important files changed]
1 parent 4c0d94a commit d20eded

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

exercises/practice/series/.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
"rchavarria",
89
"ryanplusplus",
910
"serixscorpio",

exercises/practice/series/.meta/tests.toml

Lines changed: 13 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
[7ae7a46a-d992-4c2a-9c15-a112d125ebad]
613
description = "slices of one from one"
@@ -23,6 +30,9 @@ description = "slices of a long series"
2330
[6d235d85-46cf-4fae-9955-14b6efef27cd]
2431
description = "slice length is too large"
2532

33+
[d7957455-346d-4e47-8e4b-87ed1564c6d7]
34+
description = "slice length is way too large"
35+
2636
[d34004ad-8765-4c09-8ba1-ada8ce776806]
2737
description = "slice length cannot be zero"
2838

exercises/practice/series/series.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ describe('Series', () => {
5050
}).toThrow(new Error('slice length cannot be greater than series length'));
5151
});
5252

53+
xtest('slice length is way too large', () => {
54+
expect(() => {
55+
new Series('12345').slices(42);
56+
}).toThrow(new Error('slice length cannot be greater than series length'));
57+
});
58+
5359
xtest('slice length cannot be zero', () => {
5460
expect(() => {
5561
new Series('12345').slices(0);

0 commit comments

Comments
 (0)