Skip to content

Commit ef5c386

Browse files
committed
add test
1 parent d06bf7a commit ef5c386

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/arraymath.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,9 @@
6161
@test zero(SVector{3, Float64}) === @SVector [0.0, 0.0, 0.0]
6262
@test zero(SVector{3, Int}) === @SVector [0, 0, 0]
6363
end
64+
65+
@testset "fill()" begin
66+
@test all(fill(3., SMatrix{4, 16, Float64}) .== 3.)
67+
@test @allocated(fill(0., SMatrix{1, 16, Float64})) == 0 # #81
68+
end
6469
end

0 commit comments

Comments
 (0)