mirror of https://github.com/siddontang/go.git
update list
This commit is contained in:
parent
07a4ad9e00
commit
eb8269b44c
|
@ -1,4 +1,4 @@
|
|||
package arraylist
|
||||
package list
|
||||
|
||||
const defaultSize = 1024
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package arraylist
|
||||
package list
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
|
@ -258,6 +258,8 @@ func TestIssue6349(t *testing.T) {
|
|||
l.PushBack(2)
|
||||
|
||||
e := l.Front()
|
||||
|
||||
//because element may be reused later, we must clear value in Remove
|
||||
v := l.Remove(e)
|
||||
|
||||
if v != 1 {
|
||||
|
|
Loading…
Reference in New Issue