Skip to content

Commit

Permalink
Comment reason why the test is commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejSpanel committed Dec 6, 2024
1 parent ba60326 commit 4a0c653
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 4a0c653

Please sign in to comment.