Skip to content

Commit

Permalink
Tested uncovered muladd cases
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Sep 20, 2024
1 parent af08194 commit 42f8e45
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,14 @@ end
ee = EvenCliffordNumber{VGA(3),Float64}(0, 4, 2, 0)
f = EvenCliffordNumber{VGA(3),Float32}(0, 0, 6, 9)
ff = EvenCliffordNumber{VGA(3),Float64}(0, 0, 6, 9)
@test muladd(2, ee, ff) === EvenCliffordNumber{VGA(3),Float64}(0, 8, 10, 9)
@test muladd(2, ff, ee) === EvenCliffordNumber{VGA(3),Float64}(0, 4, 14, 18)
@test muladd(2, e, f) === muladd(e, 2, f)
@test muladd(2, e, ff) == muladd(2, ee, f)
@test muladd(2, ee, ff) === EvenCliffordNumber{VGA(3),Float64}(0, 8, 10, 9)
@test muladd(2, ff, ee) === EvenCliffordNumber{VGA(3),Float64}(0, 4, 14, 18)
@test muladd(2, e, f) === muladd(e, 2, f)
@test muladd(2, e, ff) == muladd(2, ee, f)
@test muladd(ee, 2, ff) === EvenCliffordNumber{VGA(3),Float64}(0, 8, 10, 9)
@test muladd(ff, 2, ee) === EvenCliffordNumber{VGA(3),Float64}(0, 4, 14, 18)
@test muladd(e, 2, f) === muladd(e, 2, f)
@test muladd(e, 2, ff) == muladd(2, ee, f)
end

@testset "Geometric product" begin
Expand Down

0 comments on commit 42f8e45

Please sign in to comment.