Skip to content

Commit

Permalink
Added tests for STA 1-blade division and inverses
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Jun 5, 2024
1 parent f4e3779 commit 9b52d9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ end
@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
@test 1 / γ1 == -γ1
@test inv(γ0) == γ0
@test inv(γ1) == -γ1
@test_throws CliffordNumbers.InverseException inv(1 + KVector{1,VGA(2)}(1, 0))
end

Expand Down

0 comments on commit 9b52d9e

Please sign in to comment.