Skip to content

Commit

Permalink
some int tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alicebob committed Aug 9, 2022
1 parent b2b9373 commit 9fc7af8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration/set_test.go
Expand Up @@ -314,6 +314,8 @@ func TestSscan(t *testing.T) {
c.Do("SSCAN", "set", "0", "MATCH", "anoth*")
c.Do("SSCAN", "set", "0", "MATCH", "anoth*", "COUNT", "100")
c.Do("SSCAN", "set", "0", "COUNT", "100", "MATCH", "anoth*")
c.DoLoosely("SSCAN", "set", "0", "COUNT", "1") // cursor differs
c.DoLoosely("SSCAN", "set", "0", "COUNT", "2") // cursor differs

// Can't really test multiple keys.
// c.Do("SET", "key2", "value2")
Expand All @@ -323,6 +325,7 @@ func TestSscan(t *testing.T) {
c.Error("wrong number", "SSCAN")
c.Error("wrong number", "SSCAN", "noint")
c.Error("not an integer", "SSCAN", "set", "0", "COUNT", "noint")
c.Error("syntax error", "SSCAN", "set", "0", "COUNT", "0")
c.Error("syntax error", "SSCAN", "set", "0", "COUNT")
c.Error("syntax error", "SSCAN", "set", "0", "MATCH")
c.Error("syntax error", "SSCAN", "set", "0", "garbage")
Expand Down

0 comments on commit 9fc7af8

Please sign in to comment.