Skip to content

Commit d367ee8

Browse files
committed
Add test for small input without initial optimizations
1 parent 717f9ae commit d367ee8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/runtests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,10 @@ for T in (Float64, Int, UInt8)
151151
end
152152
end
153153
end
154+
155+
# PagedMergeSort with small input without InitialOptimizations
156+
# (https://github.com/JuliaCollections/SortingAlgorithms.jl/pull/71#discussion_r1292774352)
157+
if isdefined(Base.Sort, :InitialOptimizations)
158+
v = [0,1]
159+
@test sort(v, alg=SortingAlgorithms.PagedMergeSortAlg()) == sort(v, alg=MergeSort)
160+
end

0 commit comments

Comments
 (0)