Skip to content

Commit adbb470

Browse files
committed
Rewrote test for clarity
1 parent 5e41658 commit adbb470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/shared/src/test/scala/cats/tests/ParallelSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ class ParallelSuite
416416

417417
test("ParMapN over f should be consistent with parFlatMapN over f lifted in Kleisli") {
418418
forAll { (as: List[Int], bs: List[Int]) =>
419-
val f: (Int, Int) => Int = _ + _
420-
val mf: (Int, Int) => List[Int] = Function.untupled(Kleisli.fromFunction[List, (Int, Int)](f.tupled).run)
419+
val f: (Int, Int) => Int = (a, b) => a + b
420+
val mf: (Int, Int) => List[Int] = (a, b) => List(a + b)
421421
assert((as, bs).parMapN(f) == (as, bs).parFlatMapN(mf))
422422
}
423423
}

0 commit comments

Comments
 (0)