Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
Signed-off-by: XZ <834756128@qq.com>
  • Loading branch information
fcgxz2003 committed Feb 1, 2024
1 parent 5ad8805 commit 1d7a517
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func TestScan(t *testing.T) {
}

if len(keys) != 1 {
t.Error("invalid number of scaning cache keys")
t.Error("Invalid number of scaning cache keys")
}

keys, err = tc.Scan("^b", 2)
Expand All @@ -170,7 +170,7 @@ func TestScan(t *testing.T) {
}

if len(keys) != 2 {
t.Error("invalid number of scaning cache keys")
t.Error("Invalid number of scaning cache keys")
}

keys, err = tc.Scan("^b", 4)
Expand All @@ -179,7 +179,7 @@ func TestScan(t *testing.T) {
}

if len(keys) != 2 {
t.Error("invalid number of scaning cache keys")
t.Error("Invalid number of scaning cache keys")
}

keys, err = tc.Scan("^ba", 2)
Expand All @@ -188,7 +188,7 @@ func TestScan(t *testing.T) {
}

if len(keys) != 2 {
t.Error("invalid number of scaning cache keys")
t.Error("Invalid number of scaning cache keys")
}

keys, err = tc.Scan("^a", 2)
Expand All @@ -197,12 +197,12 @@ func TestScan(t *testing.T) {
}

if len(keys) != 0 {
t.Error("invalid number of scaning cache keys")
t.Error("Invalid number of scaning cache keys")
}

_, err = tc.Scan("(", 2)
if err == nil {
t.Error("parse a fault regular expression")
t.Error("Parse a fault regular expression")
}
}

Expand Down

0 comments on commit 1d7a517

Please sign in to comment.