Skip to content

Commit

Permalink
Merge pull request #133 from KristofferC/patch-1
Browse files Browse the repository at this point in the history
fix tests on 1.11
  • Loading branch information
MilesCranmer committed Apr 22, 2024
2 parents 9ea8610 + ee7afbd commit a334398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using SafeTestsets
import Ratios: SimpleRatio

@static if !hasmethod(round, Tuple{Int, SimpleRatio{Int}})
@eval Base.round(T, x::SimpleRatio) = round(T, x.num // x.den)
if !hasmethod(round, Tuple{Int, SimpleRatio{Int}})
Base.round(::Type{T}, x::SimpleRatio) where {T} = round(T, x.num // x.den)
end

if parse(Bool, get(ENV, "DQ_TEST_UPREFERRED", "false"))
Expand Down

0 comments on commit a334398

Please sign in to comment.