Skip to content

Commit a56af7d

Browse files
authored
Missing tests for cmp on UInt8s (#38914)
1 parent 8f6432e commit a56af7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/arrayops.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,9 @@ end
12961296
@test cmp([1, 2], [1, 1]) == 1
12971297
@test cmp([1], [1, 1]) == -1
12981298
@test cmp([1, 1], [1]) == 1
1299+
@test cmp([UInt8(1), UInt8(0)], [UInt8(0), UInt8(0)]) == 1
1300+
@test cmp([UInt8(1), UInt8(0)], [UInt8(1), UInt8(0)]) == 0
1301+
@test cmp([UInt8(0), UInt8(0)], [UInt8(1), UInt8(1)]) == -1
12991302
end
13001303

13011304
@testset "sort on arrays" begin

0 commit comments

Comments
 (0)