Skip to content

Commit 42aaf9f

Browse files
author
Chris Myers
committed
Merge branch 'master' into answers
2 parents 438f9fb + cade8fa commit 42aaf9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/scala/com/rea/higherorder/FoldingExercisesSpec.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class FoldingExercisesSpec extends Specification {
2525
}
2626

2727
"Remove elements under 4 for List(1,2,3,4,5,6) = List(4,5,6): " in {
28-
filter(List(1, 2, 3, 4, 5, 6), 4 < (_:Int)) === List(4, 5, 6)
28+
filter(List(1, 2, 3, 4, 5, 6), 4 <= (_:Int)) === List(4, 5, 6)
2929
}
3030

3131
"Append List(a,b,c) with List(d,e,f) = List(a,b,c,d,e,f): " in {
3232
append(List('a', 'b', 'c'), List('d', 'e', 'f')) === List('a', 'b', 'c', 'd', 'e', 'f')
3333
}
3434

35-
"Flatten a List(List(a,b,c),List(e,f,g), List(h,i,j)) = List(a,b,c,d,e,f,g,h,i,j): " in {
36-
flatten(List(List('a', 'b', 'c'), List('d', 'e', 'f'), List('h', 'i', 'j'))) === List('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j')
35+
"Flatten a List(List(a,b,c),List(d,e,f,g), List(h,i,j)) = List(a,b,c,d,e,f,g,h,i,j): " in {
36+
flatten(List(List('a', 'b', 'c'), List('d', 'e', 'f','g'), List('h', 'i', 'j'))) === List('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j')
3737
}
3838

3939
"Run a flatMap over List(hello, world) with function split = List(h,e,l,l,o,w,o,r,l,d): " in {

0 commit comments

Comments
 (0)