@@ -338,9 +338,9 @@ describe("findIndex", () => {
338
338
})
339
339
340
340
describe ("includes" , () => {
341
- test ("returns true if equal" , () => expect (includes ([1 , 2 , 3 ], 2 , \"=" ))-> toEqual (true ))
342
- test ("returns false if not equal" , () => expect (includes ([1 , 5 , 3 ], 2 , \"=" ))-> toEqual (false ))
343
- test ("returns false if empty" , () => expect (includes ([], 2 , \"=" ))-> toEqual (false ))
341
+ test ("returns true if equal" , () => expect (includes ([1 , 2 , 3 ], 2 , \"== " ))-> toEqual (true ))
342
+ test ("returns false if not equal" , () => expect (includes ([1 , 5 , 3 ], 2 , \"== " ))-> toEqual (false ))
343
+ test ("returns false if empty" , () => expect (includes ([], 2 , \"== " ))-> toEqual (false ))
344
344
})
345
345
346
346
describe ("minimum" , () => {
@@ -502,12 +502,12 @@ describe("slice", () => {
502
502
test ("works `from` >= `to_`" , () => expect (slice (~start = 4 , ~end = 3 , numbers ))-> toEqual ([]))
503
503
})
504
504
describe ("fold" , () => {
505
- test ("works for an empty array" , () => expect (fold ([], ~f = \"^ " , ~initial = "" ))-> toEqual ("" ))
505
+ test ("works for an empty array" , () => expect (fold ([], ~f = \"++ " , ~initial = "" ))-> toEqual ("" ))
506
506
test ("works for an ascociative operator" , () =>
507
507
expect (fold (~f = \"*" , ~initial = 1 , repeat (~length = 4 , 7 )))-> toEqual (2401 )
508
508
)
509
509
test ("works the order of arguments to `f` is important" , () =>
510
- expect (fold (["a" , "b" , "c" ], ~f = \"^ " , ~initial = "" ))-> toEqual ("abc" )
510
+ expect (fold (["a" , "b" , "c" ], ~f = \"++ " , ~initial = "" ))-> toEqual ("abc" )
511
511
)
512
512
test ("works the order of arguments to `f` is important" , () =>
513
513
expect (
@@ -516,10 +516,10 @@ describe("fold", () => {
516
516
)
517
517
})
518
518
describe ("foldRight" , () => {
519
- test ("works for empty arrays" , () => expect (foldRight ([], ~f = \"^ " , ~initial = "" ))-> toEqual ("" ))
519
+ test ("works for empty arrays" , () => expect (foldRight ([], ~f = \"++ " , ~initial = "" ))-> toEqual ("" ))
520
520
test ("foldRight" , () => expect (foldRight (~f = \"+" , ~initial = 0 , repeat (~length = 3 , 5 )))-> toEqual (15 ))
521
521
test ("works the order of arguments to `f` is important" , () =>
522
- expect (foldRight (["a" , "b" , "c" ], ~f = \"^ " , ~initial = "" ))-> toEqual ("cba" )
522
+ expect (foldRight (["a" , "b" , "c" ], ~f = \"++ " , ~initial = "" ))-> toEqual ("cba" )
523
523
)
524
524
test ("works the order of arguments to `f` is important" , () =>
525
525
expect (
0 commit comments