Skip to content

Commit e08e523

Browse files
authored
Add tests for copy()
1 parent 4763d2f commit e08e523

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/runtests.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,16 @@ end
174174
end
175175
end
176176

177+
#-----------------------------------------------------------------------------# copy
178+
@testset "Copy node" begin
179+
for path in all_files
180+
node = read(path, Node)
181+
node2 = copy(node)
182+
@test node == node2
183+
@test node2==deepcopy(node)
184+
end
185+
end
186+
177187
#-----------------------------------------------------------------------------# roundtrip
178188
@testset "read/write/read roundtrip" begin
179189
for path in all_files

0 commit comments

Comments
 (0)