13 lines
152 B
Text
13 lines
152 B
Text
|
|
list := []int
|
|
|
|
list.append(1)
|
|
list.append(2)
|
|
|
|
assertEq(list, [1, 2])
|
|
|
|
other := list
|
|
other.append(3)
|
|
|
|
assertEq(other, [1, 2, 3])
|
|
assertEq(list, [1, 2])
|