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
74354cee
Commit
74354cee
authored
Feb 25, 2015
by
antirez
Browse files
Test: fixes a few tests after basic unit refactoring.
parent
27c30b0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/string.tcl
View file @
74354cee
...
...
@@ -38,6 +38,7 @@ start_server {tags {"string"}} {
}
{}
test
{
SET 10000 numeric keys and access all them in reverse order
}
{
r flushdb
set err
{}
for
{
set x 0
}
{
$x
< 10000
}
{
incr x
}
{
r set $x $x
...
...
@@ -53,9 +54,9 @@ start_server {tags {"string"}} {
set _ $err
}
{}
test
{
DBSIZE should be 10
101
now
}
{
test
{
DBSIZE should be 10
000
now
}
{
r dbsize
}
{
10
101
}
}
{
10
000
}
}
test
"SETNX target key missing"
{
...
...
@@ -119,6 +120,7 @@ start_server {tags {"string"}} {
}
{
BAR
{}
FOO
{}}
test
{
GETSET
(
set new value
)}
{
r del foo
list
[
r getset foo xyz
]
[
r get foo
]
}
{{}
xyz
}
...
...
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