@@ -79,6 +79,8 @@ func TestStream(t *testing.T) {
7979 c .Do ("XADD" , "planets" , "MAXLEN" , "4" , "456-6" , "name" , "Mercury" )
8080 c .Do ("XLEN" , "planets" )
8181 c .Do ("XADD" , "planets" , "MAXLEN" , "~" , "4" , "456-7" , "name" , "Mercury" )
82+ c .Do ("XADD" , "planets" , "MAXLEN" , "=" , "4" , "456-8" , "name" , "Mercury" )
83+ c .Do ("XRANGE" , "planets" , "-" , "+" )
8284
8385 c .Error ("not an integer" , "XADD" , "planets" , "MAXLEN" , "!" , "4" , "*" , "name" , "Mercury" )
8486 c .Error ("not an integer" , "XADD" , "planets" , "MAXLEN" , " ~" , "4" , "*" , "name" , "Mercury" )
@@ -89,7 +91,7 @@ func TestStream(t *testing.T) {
8991 c .Error ("wrong number" , "XADD" , "planets" , "MAXLEN" , "~" )
9092 c .Error ("wrong number" , "XADD" , "planets" , "MAXLEN" )
9193
92- c .Do ("XADD" , "planets" , "MAXLEN" , "0" , "456-8 " , "name" , "Mercury" )
94+ c .Do ("XADD" , "planets" , "MAXLEN" , "0" , "456-9 " , "name" , "Mercury" )
9395 c .Do ("XLEN" , "planets" )
9496
9597 c .Do ("SET" , "str" , "I am a string" )
@@ -107,6 +109,8 @@ func TestStream(t *testing.T) {
107109 c .Do ("XADD" , "planets" , "MINID" , "450" , "456-6" , "name" , "Mercury" )
108110 c .Do ("XADD" , "planets" , "MINID" , "~" , "450" , "456-7" , "name" , "Mercury" )
109111 c .Do ("XLEN" , "planets" )
112+ c .Do ("XADD" , "planets" , "MINID" , "=" , "456-8" , "456-8" , "name" , "Mercury" )
113+ c .Do ("XRANGE" , "planets" , "-" , "+" )
110114
111115 c .Error ("equal or smaller than the target" , "XADD" , "planets" , "MINID" , "450" , "449-0" , "name" , "Earth" )
112116 c .Error ("equal or smaller than the target" , "XADD" , "planets" , "MINID" , "450" , "450" , "name" , "Earth" )
0 commit comments