update list

This commit is contained in:
siddontang 2014-04-17 08:53:21 +08:00
parent 07a4ad9e00
commit eb8269b44c
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
package arraylist
package list
const defaultSize = 1024

View File

@ -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 {