mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-06 17:26:52 +08:00
add go reference
This commit is contained in:
@@ -30,6 +30,16 @@ func TestAdd(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func TestLinkedList_Contains(t *testing.T) {
|
||||
list := Make(1, 2, 3, 4)
|
||||
if !list.Contains(1) {
|
||||
t.Error("expect true actual false")
|
||||
}
|
||||
if list.Contains(-1) {
|
||||
t.Error("expect false actual true")
|
||||
}
|
||||
}
|
||||
|
||||
func TestGet(t *testing.T) {
|
||||
list := Make()
|
||||
for i := 0; i < 10; i++ {
|
||||
|
Reference in New Issue
Block a user