@@ -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