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
7a6ae0a2
Commit
7a6ae0a2
authored
Jun 03, 2010
by
Pieter Noordhuis
Browse files
scope res variable outside test
parent
7f7499ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/sort.tcl
View file @
7a6ae0a2
...
@@ -9,6 +9,7 @@ start_server {tags {"sort"}} {
...
@@ -9,6 +9,7 @@ start_server {tags {"sort"}} {
}
{
1 10 2 3
}
}
{
1 10 2 3
}
tags
{
"slow"
}
{
tags
{
"slow"
}
{
set res
{}
test
{
Create a random list and a random set
}
{
test
{
Create a random list and a random set
}
{
set tosort
{}
set tosort
{}
array set seenrand
{}
array set seenrand
{}
...
@@ -31,7 +32,6 @@ start_server {tags {"sort"}} {
...
@@ -31,7 +32,6 @@ start_server {tags {"sort"}} {
lappend tosort
[
list $i $rint
]
lappend tosort
[
list $i $rint
]
}
}
set sorted
[
lsort -index 1 -real $tosort
]
set sorted
[
lsort -index 1 -real $tosort
]
set res
{}
for
{
set i 0
}
{
$i
< 10000
}
{
incr i
}
{
for
{
set i 0
}
{
$i
< 10000
}
{
incr i
}
{
lappend res
[
lindex $sorted $i 0
]
lappend res
[
lindex $sorted $i 0
]
}
}
...
...
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