Skip to content

Commit 78be896

Browse files
committed
Fixed pretty-printing of ECS
1 parent a4e5a84 commit 78be896

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/fedvr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function show(io::IO, B::FEDVR{T}) where T
103103
if T <: Complex
104104
ics = B.t₀ <= first(B.t)
105105
rot = printfmt(io, " with {1:s} @ {2:0.2f}°", ics ? "ICS" : "ECS", rad2deg(angle(B.eiϕ)))
106-
!ics && printfmt(io, " starting at {1:f}", B.t₀)
106+
!ics && printfmt(io, " starting at {1:0.2f}", B.t₀)
107107
end
108108
end
109109

test/fedvr/basics.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ end
4646
B = FEDVR(range(0,stop=20,length=71), 10)
4747
C = FEDVR(range(0,stop=20,length=71), 10, t₀=10.0, ϕ=π/3)
4848
@test occursin("FEDVR{Float64} basis with 70 elements on 0.0..20.0", string(B))
49-
@test occursin("FEDVR{Complex{Float64}} basis with 70 elements on 0.0..20.0 with ECS @ 60.00° starting at 10", string(C))
49+
Ts = string(ComplexF64)
50+
@test occursin("FEDVR{$(Ts)} basis with 70 elements on 0.0..20.0 with ECS @ 60.00° starting at 10.00", string(C))
5051
end
5152

5253
@testset "Element access" begin

0 commit comments

Comments
 (0)