diff --git a/test/utils.jl b/test/utils.jl index 386da8613..26988bb96 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -21,7 +21,10 @@ using Symbolics: symbolic_to_float @test isequal(sorted_vars2, [x, y]) end -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((-1//2)*√(279//4)) isa Float64 +@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((-1//2)*√(279//4)) isa Float64 +end