From 6e31e1fe7509423b712f326d784f420bc2e7634d 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/operations.jl b/test/operations.jl index b798979..d0eaa18 100644 --- a/test/operations.jl +++ b/test/operations.jl @@ -125,8 +125,8 @@ 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 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))