From 9e49e71380f2a1964e0a23739b4f75f473bf33c4 Mon Sep 17 00:00:00 2001 From: Brandon Flores Date: Wed, 5 Jun 2024 00:38:01 -0500 Subject: [PATCH] Corrected tests for inversion and division --- test/operations.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/operations.jl b/test/operations.jl index b798979..571dc0b 100644 --- a/test/operations.jl +++ b/test/operations.jl @@ -125,9 +125,9 @@ end @test k * (1 / k) ≈ 1 @test (1 / k) * k ≈ 1 @test inv(k) ≈ 1 / k - @test l * (1 / l) ≈ -1 - @test (1 / l) * l ≈ -1 - @test inv(l) ≈ -1 / l # This one fails for exact equality, but I don't know why + @test l * (1 / l) ≈ 1 + @test (1 / l) * l ≈ 1 + @test inv(l) ≈ 1 / l # This one fails for exact equality, but I don't know why @test inv(KVector{0,VGA(2)}(2)) == KVector{0,VGA(2)}(1//2) @test inv(KVector{0,VGA(2)}(2)) === KVector{0,VGA(2)}(inv(2)) @test 1 / γ0 == γ0