Lines Matching refs:assert_equal
8 assert_equal $type [lindex $msg 0]
70 assert_equal {1 2} [subscribe $rd1 {chan1 chan2}]
71 assert_equal 1 [r publish chan1 hello]
72 assert_equal 1 [r publish chan2 world]
73 assert_equal {message chan1 hello} [$rd1 read]
74 assert_equal {message chan2 world} [$rd1 read]
78 assert_equal 0 [r publish chan1 hello]
79 assert_equal 1 [r publish chan2 world]
80 assert_equal {message chan2 world} [$rd1 read]
84 assert_equal 0 [r publish chan1 hello]
85 assert_equal 0 [r publish chan2 world]
95 assert_equal {1} [subscribe $rd1 {chan1}]
96 assert_equal {1} [subscribe $rd2 {chan1}]
97 assert_equal 2 [r publish chan1 hello]
98 assert_equal {message chan1 hello} [$rd1 read]
99 assert_equal {message chan1 hello} [$rd2 read]
108 assert_equal {1 2 3} [subscribe $rd1 {chan1 chan2 chan3}]
110 assert_equal 0 [r publish chan1 hello]
111 assert_equal 0 [r publish chan2 hello]
112 assert_equal 0 [r publish chan3 hello]
120 assert_equal {1 1 1} [subscribe $rd1 {chan1 chan1 chan1}]
121 assert_equal 1 [r publish chan1 hello]
122 assert_equal {message chan1 hello} [$rd1 read]
130 assert_equal {0 0 0} [unsubscribe $rd1 {foo bar quux}]
140 assert_equal {1 2} [psubscribe $rd1 {foo.* bar.*}]
141 assert_equal 1 [r publish foo.1 hello]
142 assert_equal 1 [r publish bar.1 hello]
143 assert_equal 0 [r publish foo1 hello]
144 assert_equal 0 [r publish barfoo.1 hello]
145 assert_equal 0 [r publish qux.1 hello]
146 assert_equal {pmessage foo.* foo.1 hello} [$rd1 read]
147 assert_equal {pmessage bar.* bar.1 hello} [$rd1 read]
150 assert_equal {1} [punsubscribe $rd1 {foo.*}]
151 assert_equal 0 [r publish foo.1 hello]
152 assert_equal 1 [r publish bar.1 hello]
153 assert_equal {pmessage bar.* bar.1 hello} [$rd1 read]
156 assert_equal {0} [punsubscribe $rd1 {bar.*}]
157 assert_equal 0 [r publish foo.1 hello]
158 assert_equal 0 [r publish bar.1 hello]
168 assert_equal {1} [psubscribe $rd1 {chan.*}]
169 assert_equal {1} [psubscribe $rd2 {chan.*}]
170 assert_equal 2 [r publish chan.foo hello]
171 assert_equal {pmessage chan.* chan.foo hello} [$rd1 read]
172 assert_equal {pmessage chan.* chan.foo hello} [$rd2 read]
181 assert_equal {1 2 3} [psubscribe $rd1 {chan1.* chan2.* chan3.*}]
183 assert_equal 0 [r publish chan1.hi hello]
184 assert_equal 0 [r publish chan2.hi hello]
185 assert_equal 0 [r publish chan3.hi hello]
193 assert_equal {0 0 0} [punsubscribe $rd1 {foo.* bar.* quux.*}]
205 assert_equal {1} [subscribe $rd1 {foo.bar}]
206 assert_equal {2} [psubscribe $rd1 {foo.*}]
208 assert_equal 2 [r publish foo.bar hello]
209 assert_equal {message foo.bar hello} [$rd1 read]
210 assert_equal {pmessage foo.* foo.bar hello} [$rd1 read]
231 assert_equal {1} [psubscribe $rd1 *]
233 assert_equal {pmessage * __keyspace@9__:foo set} [$rd1 read]
240 assert_equal {1} [psubscribe $rd1 *]
242 assert_equal {pmessage * __keyevent@9__:set foo} [$rd1 read]
249 assert_equal {1} [psubscribe $rd1 *]
251 assert_equal {pmessage * __keyspace@9__:foo set} [$rd1 read]
252 assert_equal {pmessage * __keyevent@9__:set foo} [$rd1 read]
260 assert_equal {1} [psubscribe $rd1 *]
264 assert_equal {pmessage * __keyspace@9__:mylist lpush} [$rd1 read]
265 assert_equal {pmessage * __keyevent@9__:lpush mylist} [$rd1 read]
272 assert_equal {1} [psubscribe $rd1 *]
276 assert_equal {pmessage * __keyspace@9__:foo expire} [$rd1 read]
277 assert_equal {pmessage * __keyevent@9__:expire foo} [$rd1 read]
278 assert_equal {pmessage * __keyspace@9__:foo del} [$rd1 read]
279 assert_equal {pmessage * __keyevent@9__:del foo} [$rd1 read]
287 assert_equal {1} [psubscribe $rd1 *]
291 assert_equal {pmessage * __keyspace@9__:mylist lpush} [$rd1 read]
292 assert_equal {pmessage * __keyevent@9__:lpush mylist} [$rd1 read]
293 assert_equal {pmessage * __keyspace@9__:mylist rpush} [$rd1 read]
294 assert_equal {pmessage * __keyevent@9__:rpush mylist} [$rd1 read]
295 assert_equal {pmessage * __keyspace@9__:mylist rpop} [$rd1 read]
296 assert_equal {pmessage * __keyevent@9__:rpop mylist} [$rd1 read]
304 assert_equal {1} [psubscribe $rd1 *]
309 assert_equal {pmessage * __keyspace@9__:myset sadd} [$rd1 read]
310 assert_equal {pmessage * __keyspace@9__:myset sadd} [$rd1 read]
311 assert_equal {pmessage * __keyspace@9__:myset srem} [$rd1 read]
319 assert_equal {1} [psubscribe $rd1 *]
324 assert_equal {pmessage * __keyspace@9__:myzset zadd} [$rd1 read]
325 assert_equal {pmessage * __keyspace@9__:myzset zadd} [$rd1 read]
326 assert_equal {pmessage * __keyspace@9__:myzset zrem} [$rd1 read]
334 assert_equal {1} [psubscribe $rd1 *]
337 assert_equal {pmessage * __keyspace@9__:myhash hset} [$rd1 read]
338 assert_equal {pmessage * __keyspace@9__:myhash hincrby} [$rd1 read]
346 assert_equal {1} [psubscribe $rd1 *]
353 assert_equal {pmessage * __keyevent@9__:expired foo} [$rd1 read]
361 assert_equal {1} [psubscribe $rd1 *]
363 assert_equal {pmessage * __keyevent@9__:expired foo} [$rd1 read]
372 assert_equal {1} [psubscribe $rd1 *]
375 assert_equal {pmessage * __keyevent@9__:evicted foo} [$rd1 read]
382 assert_equal {gKE} [lindex [r config get notify-keyspace-events] 1]
384 assert_equal {$lshzxeKE} [lindex [r config get notify-keyspace-events] 1]
386 assert_equal {AK} [lindex [r config get notify-keyspace-events] 1]
388 assert_equal {AE} [lindex [r config get notify-keyspace-events] 1]