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
2b9a5947
Commit
2b9a5947
authored
Aug 21, 2010
by
Pieter Noordhuis
Browse files
SORT tests with hash table encoded set as input
parent
ced6709c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/sort.tcl
View file @
2b9a5947
...
@@ -3,6 +3,7 @@ start_server {
...
@@ -3,6 +3,7 @@ start_server {
overrides
{
overrides
{
"list-max-ziplist-value"
16
"list-max-ziplist-value"
16
"list-max-ziplist-entries"
32
"list-max-ziplist-entries"
32
"set-max-intset-entries"
32
}
}
}
{
}
{
proc create_random_dataset
{
num cmd
}
{
proc create_random_dataset
{
num cmd
}
{
...
@@ -37,6 +38,7 @@ start_server {
...
@@ -37,6 +38,7 @@ start_server {
foreach
{
num cmd enc title
}
{
foreach
{
num cmd enc title
}
{
16 lpush ziplist
"Ziplist"
16 lpush ziplist
"Ziplist"
64 lpush linkedlist
"Linked list"
64 lpush linkedlist
"Linked list"
64 sadd hashtable
"Hash table"
}
{
}
{
set result
[
create_random_dataset $num $cmd
]
set result
[
create_random_dataset $num $cmd
]
assert_encoding $enc tosort
assert_encoding $enc tosort
...
...
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