Skip to content

Commit 9f2c4eb

Browse files
committed
Use a (slightly) more sensible custom algorithm in tests
1 parent 5001cf9 commit 9f2c4eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sorting.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,8 +931,8 @@ end
931931

932932
# Tuple extensions (custom alg)
933933
@test_throws MethodError sort((1,2,3), alg=MyFirstAlg())
934-
Base.Sort._sort(v::NTuple, ::MyFirstAlg, o::Base.Order.Ordering, kw) = "hi!"
935-
@test sort((1,2,3), alg=MyFirstAlg()) == "hi!"
934+
Base.Sort._sort(v::NTuple, ::MyFirstAlg, o::Base.Order.Ordering, kw) = (17,2,9)
935+
@test sort((1,2,3), alg=MyFirstAlg()) == (17,2,9)
936936

937937
struct TupleFoo
938938
x::Int

0 commit comments

Comments
 (0)