Skip to content

Commit ab8190e

Browse files
committed
Add any and all tests using missing
1 parent a35a94f commit ab8190e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/tuple.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,12 @@ end
422422
@test all((true, true)) === true
423423
@test all((true, false)) === false
424424
@test all((false, false)) === false
425+
@test all((missing, true)) === missing
426+
@test all((true, missing)) === missing
427+
@test all((missing, false)) === false
428+
@test all((false, missing)) === false
429+
@test all((missing, true, false)) === false
430+
@test_throws TypeError all((missing, 3.2, true))
425431
end
426432

427433
@testset "any" begin
@@ -439,6 +445,13 @@ end
439445
@test any((true,false,true)) === true
440446
@test any((true,true,false)) === true
441447
@test any((true,true,true)) === true
448+
@test any((missing, true)) === true
449+
@test any((true, missing)) === true
450+
@test any((missing, false)) === missing
451+
@test any((false, missing)) === missing
452+
@test any((missing, true, false)) === true
453+
@test any((missing, false, false)) === missing
454+
@test_throws TypeError any((missing, 3.2, true))
442455
end
443456
end
444457

0 commit comments

Comments
 (0)