Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ad935769
Commit
ad935769
authored
May 19, 2014
by
antirez
Browse files
HyperLogLog regression test for issue #1762.
parent
43278af6
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/hyperloglog.tcl
View file @
ad935769
...
@@ -156,4 +156,15 @@ start_server {tags {"hll"}} {
...
@@ -156,4 +156,15 @@ start_server {tags {"hll"}} {
r pfadd hll 1 2 3
r pfadd hll 1 2 3
llength
[
r pfdebug getreg hll
]
llength
[
r pfdebug getreg hll
]
}
{
16384
}
}
{
16384
}
test
{
PFADD / PFCOUNT cache invalidation works
}
{
r del hll
r pfadd hll a b c
r pfcount hll
assert
{[
r getrange hll 15 15
]
eq
"
\x00
"
}
r pfadd hll a b c
assert
{[
r getrange hll 15 15
]
eq
"
\x00
"
}
r pfadd hll 1 2 3
assert
{[
r getrange hll 15 15
]
eq
"
\x80
"
}
}
}
}
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