Skip to content

Commit e7c5293

Browse files
authored
fix lambda in munit test (scala#2799)
1 parent 11d3ce4 commit e7c5293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_overviews/toolkit/testing-suite.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The following is an example of a test that use `assert` to check a boolean condi
107107
```scala
108108
test("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
118118
test("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
```

0 commit comments

Comments
 (0)