Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added a test case for lua-redis-parser.

  • Loading branch information...
commit 0258b9e1261a3edbe3f04a600d43070bbff3930e 1 parent 827af27
@agentzh agentzh authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 t/sanity.t
View
12 t/sanity.t
@@ -497,3 +497,15 @@ print("res == " .. cjson.encode(res))
qq{typ == 5 == multi-bulk reply == 5
res == null\n}
+
+
+=== TEST 38: many query arguments
+--- lua
+cjson = require('cjson')
+parser = require("redis.parser")
+q = {"a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a"}
+local query = parser.build_query(q)
+print("query == " .. cjson.encode(query))
+--- out eval
+"query == \"*44\\r\\n" . ("\$1\\r\\na\\r\\n" x 44) . "\"\n"
+
Please sign in to comment.
Something went wrong with that request. Please try again.