We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 460eb8f commit d1da1dbCopy full SHA for d1da1db
test/runtests.jl
@@ -266,6 +266,12 @@ end
266
@test 1 + FD2(0.1) === FD2(1.1)
267
@test FD2(0.1) + FD4(0.0001) === FD4(0.1001)
268
@test WFD2(0.1) + FD4(0.0001) === WFD4(0.1001)
269
+
270
+ # promotion with Rational
271
+ # see https://github.com/JuliaMath/FixedPointDecimals.jl/issues/73
272
+ r = Rational{Int8}(1//1)
273
+ fd = FixedDecimal{Int128,4}(2.5806)
274
+ @test (r + fd) isa Rational{Int128}
275
end
276
277
@testset "float" begin
0 commit comments