Skip to content

Commit

Permalink
fix tests for printing characters
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek committed Nov 29, 2023
1 parent 035c973 commit 05cc2ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/characters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,9 @@ end
@test sprint(show, -2chars[1] + 3chars[2]) == "-2·χ₁ +3·χ₂"

@test sprint(show, MIME"text/plain"(), chars[1]) ==
"Character over Cyclotomic{Rational{$Int}, SparseVector{Rational{$Int}, $Int}}\nχ₁"
"Character over cyclotomics (Rational{$Int})\nχ₁"

χ = Characters.Character{Rational{BigInt}}(chars[1])
@test sprint(show, MIME"text/plain"(), χ) ==
"Character over rationals ($BigInt)\nχ₁"
end

0 comments on commit 05cc2ed

Please sign in to comment.