From 7d3ef841b4142b56c1e7a1d67bc6d1a9d3bdb74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Fri, 5 Jul 2024 16:01:01 +0200 Subject: [PATCH] Add test --- test/constructors.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/constructors.jl b/test/constructors.jl index 0fdf940..883a262 100644 --- a/test/constructors.jl +++ b/test/constructors.jl @@ -111,6 +111,8 @@ end @test coeffs(deepcopy(a)) !== coeffs(a) @test parent(deepcopy(a)) === parent(a) + @test star(a) == a + latex = CustomLaTeXPrint(" \$\$ \\[\\(α_β∀ \\) \\]\t \$\$") a = SA.AlgebraElement(SA.SparseCoefficients([p], [latex]), RG) # Tests that `getindex` works even if `zero(typeof(latex))` is not defined @@ -122,5 +124,5 @@ end @test sprint((io, x) -> show(io, "text/latex", x), SA.AlgebraElement(SA.SparseCoefficients([p], [latex]), RG)) == "\$\$ (\\(β∀) \\cdot b·c \$\$" - + end