Commit 70023978 authored by antirez's avatar antirez
Browse files

test for the new more strict behavior about number parsing

parent c9df799b
...@@ -120,7 +120,19 @@ start_server {tags {"basic"}} { ...@@ -120,7 +120,19 @@ start_server {tags {"basic"}} {
r incrby novar 17179869184 r incrby novar 17179869184
} {34359738368} } {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 " r set novar " 11 "
catch {r incr novar} err catch {r incr novar} err
format $err format $err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment