From 05cc2ed1ac306777fc6490a1579350faf0ac40de Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Wed, 29 Nov 2023 10:48:26 +0100 Subject: [PATCH] fix tests for printing characters --- test/characters.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/characters.jl b/test/characters.jl index 74f0cff..a356627 100644 --- a/test/characters.jl +++ b/test/characters.jl @@ -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