Skip to content

Commit e6f9e3f

Browse files
committed
Add tests for fill!
1 parent f6c592f commit e6f9e3f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/darray.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,8 @@ check_leaks()
10481048
close(d)
10491049
end
10501050

1051+
check_leaks()
1052+
10511053
@testset "rand!" begin
10521054
d = dzeros(30, 30)
10531055
rand!(d)
@@ -1057,6 +1059,16 @@ end
10571059

10581060
check_leaks()
10591061

1062+
@testset "fill!" begin
1063+
d = dzeros(30, 30)
1064+
fill!(d, 3.14)
1065+
@test all(x-> x == 3.14, d)
1066+
1067+
close(d)
1068+
end
1069+
1070+
check_leaks()
1071+
10601072
d_closeall()
10611073

10621074
@testset "test for any leaks" begin

0 commit comments

Comments
 (0)