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
107
107
``` scala
108
108
test(" all even numbers" ) {
109
109
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 )
111
111
// check that obtained values are all even numbers
112
112
assert(obtainedResults.forall(x => x % 2 == 0 ))
113
113
}
@@ -117,7 +117,7 @@ test("all even numbers") {
117
117
``` scala
118
118
test(" all even numbers" ):
119
119
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 )
121
121
// check that obtained values are all even numbers
122
122
assert(obtainedResults.forall(x => x % 2 == 0 ))
123
123
```
You can’t perform that action at this time.
0 commit comments