Skip to content

Commit c8f05bb

Browse files
committed
Add tests for isunordered
1 parent 7aa7fdb commit c8f05bb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/operators.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ import Base.<
9696
end
9797
end
9898

99+
@testset "isunordered" begin
100+
@test isunordered(NaN)
101+
@test isunordered(NaN32)
102+
@test isunordered(missing)
103+
@test !isunordered(1)
104+
@test !isunordered([NaN, 1])
105+
@test !isunordered([1.0, missing])
106+
end
107+
99108
@testset "vectorized comparisons between numbers" begin
100109
@test 1 .!= 2
101110
@test 1 .== 1

0 commit comments

Comments
 (0)