Skip to content

Commit f1b7b62

Browse files
committed
Add informative comment.
1 parent efe9a17 commit f1b7b62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/sorting.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ end
8585
@test searchsorted([1,2,3], 0) == 1:0
8686
@test searchsorted([1,2,3], 4) == 4:3
8787

88+
# exercise the codepath in searchsorted* methods for ranges that check for zero step range
8889
immutable ConstantRange{T} <: Range{T}
8990
val::T
9091
len::Int

0 commit comments

Comments
 (0)