Skip to content

Commit

Permalink
Update test/utils.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Aug 27, 2024
1 parent e49f153 commit b7b6add
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b7b6add

Please sign in to comment.