Skip to content

Commit 610f34d

Browse files
committed
Add test for checking that append! takes elements from second arg
1 parent 0149cc4 commit 610f34d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_mutable_list.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@
9797
@testset "append" begin
9898
l2 = MutableLinkedList{Int}(n+1:2n...)
9999
append!(l, l2)
100-
@test l == MutableLinkedList{Int}(1:2n...)
100+
@test l == MutableLinkedList{Int}(1:2n...)
101+
@test l2 == MutableLinkedList{Int}()
101102
@test collect(l) == collect(MutableLinkedList{Int}(1:2n...))
102103
l3 = MutableLinkedList{Int}(1:n...)
103104
append!(l3, n+1:2n...)

0 commit comments

Comments
 (0)