diff --git a/storage/dao/stringx_test.go b/storage/dao/stringx_test.go index dab89b8..7cdc5b3 100644 --- a/storage/dao/stringx_test.go +++ b/storage/dao/stringx_test.go @@ -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) {