summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPierre Chapuis <catwell-github@catwell.info>2016-06-05 16:22:52 +0200
committerPierre Chapuis <catwell-github@catwell.info>2016-06-05 16:50:24 +0200
commitd88c3c77beb975c84c23b7586ed6984b4c74b82d (patch)
tree310c2085272ff8db8a369cfafb68f77281517ae5 /tests
parentb670a1628263cd2655e70ee5c9c947f49fc94647 (diff)
downloadredis-d88c3c77beb975c84c23b7586ed6984b4c74b82d.tar.gz
make RPUSHX and LPUSHX variadic
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/type/list.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/type/list.tcl b/tests/unit/type/list.tcl
index e4d568cf1..1557082a2 100644
--- a/tests/unit/type/list.tcl
+++ b/tests/unit/type/list.tcl
@@ -507,7 +507,9 @@ start_server {
create_list xlist "$large c"
assert_equal 3 [r rpushx xlist d]
assert_equal 4 [r lpushx xlist a]
- assert_equal "a $large c d" [r lrange xlist 0 -1]
+ assert_equal 6 [r rpushx xlist 42 x]
+ assert_equal 9 [r lpushx xlist y3 y2 y1]
+ assert_equal "y1 y2 y3 a $large c d 42 x" [r lrange xlist 0 -1]
}
test "LINSERT - $type" {