Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner committed Nov 11, 2023
1 parent abae944 commit 0f209d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ using Statistics
@test_broken issorted(times) # This is too much to ask for
diffs = diff(times)
limit = VERSION >= v"1.9" ? 3 : 10
@test -limit < sortperm(diffs, 3) # Rarely more than a 3 nanoseconds of non-monotonicity
@test -limit < partialsort(diffs, 3) # Rarely more than a 3 nanoseconds of non-monotonicity
@test count(x -> x<=0, diffs[25:49]) <= 10 # Mostly monotonic
limit = VERSION >= v"1.9" ? .95 : VERSION >= v"1.6" ? .9 : .5
@test cor(25:50, times[25:50]) > limit # Highly correlated for large inputs
Expand Down

0 comments on commit 0f209d6

Please sign in to comment.