Skip to content

Commit

Permalink
Restrict Nd tests to 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
pxl-th committed Aug 30, 2023
1 parent b856287 commit 5f4814b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions test/rulesets/Base/sort.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@
test_rrule(sort, a)
test_rrule(sort, a; fkwargs=(;rev=true))

a = rand(5, 4)
for dims in (1, 2)
# fwd
test_frule(sort, a; fkwargs=(;dims))
test_frule(sort, a; fkwargs=(;dims, rev=true))
# rev
test_rrule(sort, a; fkwargs=(;dims))
test_rrule(sort, a; fkwargs=(;dims, rev=true))
if VERSION v"1.9"
a = rand(5, 4)
for dims in (1, 2)
# fwd
test_frule(sort, a; fkwargs=(;dims))
test_frule(sort, a; fkwargs=(;dims, rev=true))
# rev
test_rrule(sort, a; fkwargs=(;dims))
test_rrule(sort, a; fkwargs=(;dims, rev=true))
end
end
end
@testset "partialsort" begin
Expand Down

0 comments on commit 5f4814b

Please sign in to comment.