File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
exercises/practice/series Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 44 ],
55 "contributors" : [
66 " ankorGH" ,
7+ " jagdish-15" ,
78 " rchavarria" ,
89 " ryanplusplus" ,
910 " serixscorpio" ,
Original file line number Diff line number Diff line change 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 ]
613description = " slices of one from one"
@@ -23,6 +30,9 @@ description = "slices of a long series"
2330[6d235d85-46cf-4fae-9955-14b6efef27cd ]
2431description = " 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 ]
2737description = " slice length cannot be zero"
2838
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments