提交 70023978 编写于 作者: A antirez

test for the new more strict behavior about number parsing

上级 c9df799b
......@@ -120,7 +120,19 @@ start_server {tags {"basic"}} {
r incrby novar 17179869184
} {34359738368}
test {INCR fails against key with spaces (no integer encoded)} {
test {INCR fails against key with spaces (left)} {
r set novar " 11"
catch {r incr novar} err
format $err
} {ERR*}
test {INCR fails against key with spaces (right)} {
r set novar "11 "
catch {r incr novar} err
format $err
} {ERR*}
test {INCR fails against key with spaces (both)} {
r set novar " 11 "
catch {r incr novar} err
format $err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册