Fix failing test

This commit is contained in:
Iaroslav Postovalov 2021-02-08 19:01:47 +07:00
parent 956ac6b74f
commit da1713b3c6
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7

View File

@ -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) }