Skip to content

Commit e4baa6d

Browse files
committed
more robust tests
1 parent 0653d11 commit e4baa6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/symmetries/spaces.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,10 @@ end
454454

455455
@timedtestset "show and friends" begin
456456
V = U1Space(i => 1 for i in 1:3)
457-
@test string(V) == "Rep[U₁](1 => 1, 2 => 1, 3 => 1)"
458-
@test string(V') == "Rep[U₁](1 => 1, 2 => 1, 3 => 1)'"
459-
@test sprint((x, y) -> show(x, MIME"text/plain"(), y), V) == "Rep[U₁](…) of dim 3:\n 1 => 1\n 2 => 1\n 3 => 1"
460-
@test sprint((x, y) -> show(x, MIME"text/plain"(), y), V') == "Rep[U₁](…)' of dim 3:\n 1 => 1\n 2 => 1\n 3 => 1"
457+
@test string(V) == "$(type_repr(typeof(V)))(1 => 1, 2 => 1, 3 => 1)"
458+
@test string(V') == "$(type_repr(typeof(V)))(1 => 1, 2 => 1, 3 => 1)'"
459+
@test sprint((x, y) -> show(x, MIME"text/plain"(), y), V) == "$(type_repr(typeof(V)))(…) of dim 3:\n 1 => 1\n 2 => 1\n 3 => 1"
460+
@test sprint((x, y) -> show(x, MIME"text/plain"(), y), V') == "$(type_repr(typeof(V)))(…)' of dim 3:\n 1 => 1\n 2 => 1\n 3 => 1"
461461
end
462462

463463
TensorKit.empty_globalcaches!()

0 commit comments

Comments
 (0)