test(dao-stringx): add test TestDao_GetRange
This commit is contained in:
parent
cf4b24ea86
commit
c0da22ef6f
|
@ -115,6 +115,11 @@ func TestDao_GetRange(t *testing.T) {
|
|||
_, err = dao.GetRange(baseKey, 0, 7)
|
||||
require.Error(t, err)
|
||||
|
||||
_, err = dao.Set(baseKey, "123456")
|
||||
require.NoError(t, err)
|
||||
resp, err = dao.GetRange(baseKey, 0, 3)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, resp.Result, "123")
|
||||
}
|
||||
|
||||
func TestDao_GetSet(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue