From da1713b3c6e5436dbbb7792ad371e31dc59955dd Mon Sep 17 00:00:00 2001 From: Iaroslav Postovalov Date: Mon, 8 Feb 2021 19:01:47 +0700 Subject: [PATCH] Fix failing test --- .../src/commonTest/kotlin/kscience/kmath/complex/ComplexTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmath-complex/src/commonTest/kotlin/kscience/kmath/complex/ComplexTest.kt b/kmath-complex/src/commonTest/kotlin/kscience/kmath/complex/ComplexTest.kt index 6f3dab8df..6b7364c59 100644 --- a/kmath-complex/src/commonTest/kotlin/kscience/kmath/complex/ComplexTest.kt +++ b/kmath-complex/src/commonTest/kotlin/kscience/kmath/complex/ComplexTest.kt @@ -8,7 +8,7 @@ import kotlin.test.assertTrue internal class ComplexTest { @Test - fun conjugate() = ComplexField { assertEquals(i * 42, (i * -42).conjugate) } + fun conjugate() = ComplexField { assertEquals(Complex(0, 42), Complex(0, -42).conjugate) } @Test fun reciprocal() = ComplexField { assertTrue((Complex(0.5, -0.0) - 2.toComplex().reciprocal).r < 1e-10) }