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 3366fb2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/characters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,12 @@ 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χ₁"

@test sprint(show, MIME"text/plain"(), Characters.table(χ)) isa
AbstractString
end

0 comments on commit 3366fb2

Please sign in to comment.