LREM fixed, used to crash since the new object integer encoding is on the stage

This commit is contained in:
antirez
2009-09-18 20:31:47 +02:00
parent d446590041
commit 724a51b1a9
2 changed files with 54 additions and 11 deletions

View File

@ -651,6 +651,14 @@ proc main {server port} {
list [$r lrange mylist 0 -1] $res
} {{foo bar foobar foobared zap test} 2}
test {LREM, deleting objects that may be encoded as integers} {
$r lpush myotherlist 1
$r lpush myotherlist 2
$r lpush myotherlist 3
$r lrem myotherlist 1 2
$r llen myotherlist
} {2}
test {MGET} {
$r flushall
$r set foo BAR