Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
70023978
Commit
70023978
authored
Nov 14, 2011
by
antirez
Browse files
test for the new more strict behavior about number parsing
parent
c9df799b
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/basic.tcl
View file @
70023978
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment