Skip to content

Commit e8c25b4

Browse files
committed
Add allocation tests
1 parent ab8190e commit e8c25b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/tuple.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,8 @@ end
428428
@test all((false, missing)) === false
429429
@test all((missing, true, false)) === false
430430
@test_throws TypeError all((missing, 3.2, true))
431+
ts = (missing, true, false)
432+
@test @allocated(all(ts)) == 0 # PR #44063
431433
end
432434

433435
@testset "any" begin
@@ -452,6 +454,8 @@ end
452454
@test any((missing, true, false)) === true
453455
@test any((missing, false, false)) === missing
454456
@test_throws TypeError any((missing, 3.2, true))
457+
ts = (missing, true, false)
458+
@test @allocated(any(ts)) == 0 # PR #44063
455459
end
456460
end
457461

0 commit comments

Comments
 (0)