From 42f8e45011d349739bbfe3f7e06c731ad0b782c3 Mon Sep 17 00:00:00 2001 From: Brandon Flores Date: Fri, 20 Sep 2024 16:41:27 -0500 Subject: [PATCH] Tested uncovered `muladd` cases --- test/operations.jl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/operations.jl b/test/operations.jl index 17e50cf..431c0fe 100644 --- a/test/operations.jl +++ b/test/operations.jl @@ -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