Skip to content

Commit

Permalink
Corrected tests for inversion and division
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Jun 5, 2024
1 parent 9b52d9e commit 9e49e71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e49e71

Please sign in to comment.