From 5c0742b05a07ba64b6d32eeb531368cac29c5f50 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 20 Dec 2023 05:57:40 -0500 Subject: [PATCH] Update utils_test.jl --- test/utils_test.jl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/utils_test.jl b/test/utils_test.jl index 9769c523..aa6acec4 100644 --- a/test/utils_test.jl +++ b/test/utils_test.jl @@ -113,3 +113,13 @@ recursivefill!(x, true) recursivefill!(y_voa, ones(Vec3)) @test all(y_voa[:, n] == fill(ones(Vec3), n) for n in 1:4) end + +@testset "VectorOfArray recursivecopy!" begin + u1 = VectorOfArray([fill(2, MVector{2, Float64}), ones(MVector{2, Float64})]) + u2 = VectorOfArray([fill(4, MVector{2, Float64}), 2 .* ones(MVector{2, Float64})]) + recursivecopy!(u1,u2) + @test u1.u[1] == [4.0,4.0] + @test u1.u[2] == [2.0,2.0] + @test u1.u[1] isa MVector + @test u1.u[2] isa MVector +end