From: antirez Date: Wed, 18 Apr 2012 15:22:14 +0000 (+0200) Subject: Test LINSERT syntax error. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/7aa0dfd014b76b368d7b96017c3b11f76401a341?hp=94e5c1d7e5928b53df545a62f91d033754408b43 Test LINSERT syntax error. --- 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)