Skip to content

Commit 85b2ac5

Browse files
committed
test wrong bitcount
1 parent 8f34f8c commit 85b2ac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/radix_wrapper.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using Random: shuffle
55
@test sort([3,1,2]) == sort([3,1,2], alg=RadixSort2)
66
@test all(sort([NaN, -NaN]) .=== sort([NaN, -NaN], alg=RadixSort2))
77
@test isequal(sort!([NaN], order=Base.Order.Reverse, alg=RadixSort2), [NaN])
8-
@test sort!([reinterpret(Char, 0xc182274c), 'a'], alg=RadixSort2) == ['a', reinterpret(Char, 0xc182274c)]
8+
@test sort!([reinterpret(Char, 0xc1820000), 'a'], alg=RadixSort2) == ['a', reinterpret(Char, 0xc1820000)]
99
@test sort!(["world", "hello"], alg=RadixSort2) == ["hello", "world"]
1010
x = vcat(Float16[NaN, -NaN], fill(0, 20))::Vector{Float16}
1111
@test all(sort(x; alg=MergeSort) .=== sort(x; alg=RadixSort2))

0 commit comments

Comments
 (0)