We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fill!
1 parent f6c592f commit e6f9e3fCopy full SHA for e6f9e3f
test/darray.jl
@@ -1048,6 +1048,8 @@ check_leaks()
1048
close(d)
1049
end
1050
1051
+check_leaks()
1052
+
1053
@testset "rand!" begin
1054
d = dzeros(30, 30)
1055
rand!(d)
@@ -1057,6 +1059,16 @@ end
1057
1059
1058
1060
check_leaks()
1061
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
1071
1072
d_closeall()
1073
1074
@testset "test for any leaks" begin
0 commit comments