Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jul 5, 2024
1 parent fda4b1f commit 7d3ef84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 7d3ef84

Please sign in to comment.