X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7eb850ef0e437323e2d84157ddc2e6e82af57bbc..6dd1693c0e4bfae0ca0983b2a0bf70ae234a6bcb:/tests/unit/scripting.tcl diff --git a/tests/unit/scripting.tcl b/tests/unit/scripting.tcl index 6dbdb6b6..8634263a 100644 --- a/tests/unit/scripting.tcl +++ b/tests/unit/scripting.tcl @@ -30,6 +30,10 @@ start_server {tags {"scripting"}} { set _ $e } {this is an error} + test {EVAL - Lua nil reply -> Redis protocol type conversion} { + r eval {return {1,redis.NIL,{nilbulk=true},4}} 0 + } {1 {} {} 4} + test {EVAL - Lua table -> Redis protocol type conversion} { r eval {return {1,2,3,'ciao',{1,2}}} 0 } {1 2 3 ciao {1 2}}