1 start_server
{tags
{"protocol"}} {
2 test
{Handle an empty query well
} {
4 puts -nonewline $fd "\r\n"
9 test
{Negative multi bulk command does not create problems
} {
11 puts -nonewline $fd "*-10\r\n"
16 test
{Negative multi bulk payload
} {
18 puts -nonewline $fd "SET x -10\r\n"
23 test
{Too big bulk payload
} {
25 puts -nonewline $fd "SET x 2000000000\r\n"
28 } {*invalid bulk
*count
*}
30 test
{bulk payload is not a number
} {
32 puts -nonewline $fd "SET x blabla\r\n"
35 } {*invalid bulk
*count
*}
37 test
{Multi bulk request not followed by bulk args
} {
39 puts -nonewline $fd "*1\r\nfoo\r\n"
44 test
{Generic wrong number of args
} {
45 catch {r ping x y z
} err
47 } {*wrong
*arguments
*ping
*}