From 4a0c653e582d57b98807b550a06787fcb2a67b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C5=A0pan=C4=9Bl?= Date: Fri, 6 Dec 2024 17:26:37 +0100 Subject: [PATCH] Comment reason why the test is commented out --- .../softwaremill/quicklens/test/ExtensionCopyTest.scala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/quicklens/src/test/scala-3/com/softwaremill/quicklens/test/ExtensionCopyTest.scala b/quicklens/src/test/scala-3/com/softwaremill/quicklens/test/ExtensionCopyTest.scala index 0fbb832..5c85919 100644 --- a/quicklens/src/test/scala-3/com/softwaremill/quicklens/test/ExtensionCopyTest.scala +++ b/quicklens/src/test/scala-3/com/softwaremill/quicklens/test/ExtensionCopyTest.scala @@ -21,8 +21,9 @@ object ExtensionCopyTest { } class ExtensionCopyTest extends AnyFlatSpec with Matchers { - /* it should "modify a simple class with an extension copy method" in { + // this test does compile at the moment, because we search extensions in companions only + /* class VecSimple(xp: Double, yp: Double) { val xMember = xp val yMember = yp @@ -36,10 +37,10 @@ class ExtensionCopyTest extends AnyFlatSpec with Matchers { def copy(x: Double = v.xMember, y: Double = v.yMember): VecSimple = new VecSimple(x, y) } val a = VecSimple(1, 2) - val b = a.modify(_.xMember).using(_ + 1) - println(b) + val b = a.modify(_.xMember).using(_ + 10) + b.xMember shouldEqual 11 + */ } - */ it should "modify a simple class with an extension copy method in companion" in { class VecCompanion(xp: Double, yp: Double) {