Skip to content

Commit

Permalink
add brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
aplavin authored Jul 13, 2023
1 parent 1b157c2 commit a21fd4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ordering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ for (s1, rev) in enumerate([true, false])
for (s3, by) in enumerate([-, +])
for (s4, order) in enumerate([Reverse, Forward])
is_fwd = iseven(s1 + s2 + s3 + s4)
target = is_fwd ? 1:3 : 3:-1:1
target = is_fwd ? (1:3) : (3:-1:1)
# arrays, integer and float ranges sometimes have different code paths
@test target == sort([2, 3, 1], rev=rev, lt=lt, by=by, order=order)
@test target === sort(1:3, rev=rev, lt=lt, by=by, order=order)
Expand Down

0 comments on commit a21fd4a

Please sign in to comment.