From 7aa0dfd014b76b368d7b96017c3b11f76401a341 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 18 Apr 2012 17:22:14 +0200 Subject: [PATCH] Test LINSERT syntax error. --- tests/unit/type/list.tcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unit/type/list.tcl b/tests/unit/type/list.tcl index 9a63d451..035cf3de 100644 --- a/tests/unit/type/list.tcl +++ b/tests/unit/type/list.tcl @@ -399,6 +399,11 @@ start_server { } } + test {LINSERT raise error on bad syntax} { + catch {[r linsert xlist aft3r aa 42]} e + set e + } {*ERR*syntax*error*} + test {LPUSHX, RPUSHX convert from ziplist to list} { set large $largevalue(linkedlist) -- 2.45.2