Skip to content

Commit 4a958ee

Browse files
committed
correction in fmtspec and fmt test
1 parent ed836bd commit 4a958ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/fmt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ i = 1234567
2727
@test fmt(1//2 + 6//2 * im, 15) == " 1//2 + 3//1*im"
2828

2929
fmt_default!(Rational, 'f', prec = 2)
30-
fmt_default!(Format.ComplexRational, 'f', prec = 2)
30+
fmt_default!(Complex{T} where T<:Rational, 'f', prec = 2)
3131

3232
@test fmt(3//4, 10, 2) == " 0.75"
3333
@test fmt(3//4, 10, 1) == " 0.8"

test/fmtspec.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ end
238238
@testset "Format Symbols (S) for Irrationals" begin
239239
@test pyfmt(">10s", pi) == " π"
240240
@test pyfmt("10s", pi) == "π "
241-
@test pyfmt("3", MathConstants.eulergamma) == " γ"
241+
@test pyfmt("3", MathConstants.eulergamma) == "γ "
242242
@test pyfmt("10.2f", MathConstants.eulergamma) == " 0.58"
243243
@test pyfmt("<3s", MathConstants.e) == ""
244244
end

0 commit comments

Comments
 (0)