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
8eb1cb3b
Commit
8eb1cb3b
authored
Dec 13, 2013
by
antirez
Browse files
SDIFF iterator misuse bug regression test added.
See commit
c00453da
for more info about the bug.
parent
993e0ede
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/set.tcl
View file @
8eb1cb3b
...
@@ -214,6 +214,12 @@ start_server {
...
@@ -214,6 +214,12 @@ start_server {
r sdiff set1 set2 set3
r sdiff set1 set2 set3
}
{}
}
{}
test
"SDIFF with same set two times"
{
r del set1
r sadd set1 a b c 1 2 3 4 5 6
r sdiff set1 set1
}
{}
test
"SDIFF fuzzing"
{
test
"SDIFF fuzzing"
{
for
{
set j 0
}
{
$j
< 100
}
{
incr j
}
{
for
{
set j 0
}
{
$j
< 100
}
{
incr j
}
{
unset -nocomplain s
unset -nocomplain s
...
...
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