add more tests

This commit is contained in:
kevin
2020-10-19 15:49:11 +08:00
parent 33faab61a3
commit c9b0ac1ee4
3 changed files with 16 additions and 9 deletions

View File

@@ -713,6 +713,8 @@ func TestRedis_SortedSet(t *testing.T) {
pairs, err = client.ZrevrangebyscoreWithScoresAndLimit("key", 5, 8, 1, 0)
assert.Nil(t, err)
assert.Equal(t, 0, len(pairs))
_, err = NewRedis(client.Addr, "").Zrevrank("key", "value")
assert.NotNil(t, err)
})
}