File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ The following is an example of a test that use `assert` to check a boolean condi
107107``` scala
108108test(" all even numbers" ) {
109109 val input : List [Int ] = List (1 , 2 , 3 , 4 )
110- val obtainedResults : List [Int ] = input.map(_ * 2_ )
110+ val obtainedResults : List [Int ] = input.map(_ * 2 )
111111 // check that obtained values are all even numbers
112112 assert(obtainedResults.forall(x => x % 2 == 0 ))
113113}
@@ -117,7 +117,7 @@ test("all even numbers") {
117117``` scala
118118test(" all even numbers" ):
119119 val input : List [Int ] = List (1 , 2 , 3 , 4 )
120- val obtainedResults : List [Int ] = input.map(_ * 2_ )
120+ val obtainedResults : List [Int ] = input.map(_ * 2 )
121121 // check that obtained values are all even numbers
122122 assert(obtainedResults.forall(x => x % 2 == 0 ))
123123```
You can’t perform that action at this time.
0 commit comments