ledisdb/ledis/t_list_test.go

18 lines
244 B
Go
Raw Normal View History

2014-05-16 06:36:18 +04:00
package ledis
import (
"testing"
)
func TestDBList(t *testing.T) {
db := getTestDB()
key := []byte("testdb_list_a")
if n, err := db.RPush(key, []byte("1"), []byte("2")); err != nil {
t.Fatal(err)
} else if n != 2 {
t.Fatal(n)
}
}