Skip to content

Commit 472a606

Browse files
Update interface_tests.jl
1 parent 8854baa commit 472a606

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/interface_tests.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function f(u1,u2,u3)
134134
u3 .= u1 .+ u2
135135
end
136136
f(u1,u2,u3)
137-
@test@allocated f(u1,u2,u3) == 0
137+
@test @allocated f(u1,u2,u3) == 0
138138

139139
yy = [2.0 1.0; 2.0 1.0]
140140
zz = x .+ yy
@@ -143,3 +143,9 @@ zz = x .+ yy
143143
z = VectorOfArray([zeros(SVector{2, Float64}), zeros(SVector{2, Float64})])
144144
z .= zz
145145
@test z == VectorOfArray([fill(4, SVector{2, Float64}), fill(2, SVector{2, Float64})])
146+
147+
function f!(z,zz)
148+
z .= zz
149+
end
150+
f!(z,zz)
151+
@test @allocated f!(z,zz) == 0

0 commit comments

Comments
 (0)