Skip to content

Commit

Permalink
Merge pull request #1244 from DanielVandH/s2f
Browse files Browse the repository at this point in the history
Add missing `@test`s in testset
  • Loading branch information
ChrisRackauckas authored Aug 28, 2024
2 parents 389a4cd + 60b8fc6 commit c91be2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c91be2e

Please sign in to comment.