Skip to content

Commit ce0ef23

Browse files
committed
Refactor functorInterveawing to be more interesting
1 parent 3d23181 commit ce0ef23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/pos/_typeInterweaving/functorInterweaving.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ given Functor[List] with
99
def map[A](x: List[A])[B](f: A => B): List[B] =
1010
x.map(f)
1111

12-
def assertTransformation[F[_]: Functor][A][B](expected: F[B], original: F[A], mapping: A => B): Unit =
13-
assert(expected == summon[Functor[F]].map(original, mapping))
12+
def assertTransformation[F[_]: Functor][A](original: F[A])[B](expected: F[B])(mapping: A => B): Unit =
13+
assert(expected == summon[Functor[F]].map(original)(mapping))
1414

1515
@main def test =
16-
assertTransformation(List("a1", "b1"), List("a", "b"), elt => s"${elt}1")
16+
assertTransformation(List("a", "b"))(List("a1", "b1")){elt => s"${elt}1"}

0 commit comments

Comments
 (0)