File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ i = 1234567
27
27
@test fmt (1 // 2 + 6 // 2 * im, 15 ) == " 1//2 + 3//1*im"
28
28
29
29
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 )
31
31
32
32
@test fmt (3 // 4 , 10 , 2 ) == " 0.75"
33
33
@test fmt (3 // 4 , 10 , 1 ) == " 0.8"
Original file line number Diff line number Diff line change 238
238
@testset " Format Symbols (S) for Irrationals" begin
239
239
@test pyfmt (" >10s" , pi ) == " π"
240
240
@test pyfmt (" 10s" , pi ) == " π "
241
- @test pyfmt (" 3" , MathConstants. eulergamma) == " γ "
241
+ @test pyfmt (" 3" , MathConstants. eulergamma) == " γ "
242
242
@test pyfmt (" 10.2f" , MathConstants. eulergamma) == " 0.58"
243
243
@test pyfmt (" <3s" , MathConstants. e) == " ℯ "
244
244
end
You can’t perform that action at this time.
0 commit comments