diff --git a/test/utils.jl b/test/utils.jl index c601f653b..5121a0300 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -23,9 +23,9 @@ end @testset "symbolic_to_float" begin @variables x - symbolic_to_float((1//2 * x)/x) isa Float64 - symbolic_to_float((1/2 * x)/x) isa Float64 - symbolic_to_float((1//2)*√(279//4)) isa Float64 - symbolic_to_float((big(1)//2)*√(279//4)) isa BigFloat - symbolic_to_float((-1//2)*√(279//4)) isa Float64 + @test symbolic_to_float((1//2 * x)/x) isa Rational{Int} + @test symbolic_to_float((1/2 * x)/x) isa Float64 + @test symbolic_to_float((1//2)*√(279//4)) isa Float64 + @test symbolic_to_float((big(1)//2)*√(279//4)) isa BigFloat + @test symbolic_to_float((-1//2)*√(279//4)) isa Float64 end