From 6f84399c7b41550e4468b373247d4d702ebcf14b Mon Sep 17 00:00:00 2001 From: Andy Zhang <37402126+AnzhiZhang@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:59:21 +0100 Subject: [PATCH] test(matrices): add involutory tests --- test/matrices/involutory.jl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/matrices/involutory.jl diff --git a/test/matrices/involutory.jl b/test/matrices/involutory.jl new file mode 100644 index 0000000..6b1b8ee --- /dev/null +++ b/test/matrices/involutory.jl @@ -0,0 +1,14 @@ +# constructors +@test allequal([ + Involutory(5), + Involutory{Int}(5), +]) + +# linear algebra functions +run_test_linearalgrbra_functions(Involutory.(1:5)) + +# eltype +@test test_matrix_elements(Involutory{Int32}(5)) + +# content +@test Involutory(5) ≈ [-5.0 0.5 0.3333333333333333 0.25 0.2; -300.0 40.0 30.0 24.0 20.0; 1050.0 -157.5 -126.0 -105.0 -90.0; -1400.0 224.0 186.66666666666666 160.0 140.0; 630.0 -105.0 -90.0 -78.75 -70.0]