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
8d95a474
"tests/vscode:/vscode.git/clone" did not exist on "0c3b8b7e90ea242640a417abb5c40f30dfc3e036"
Commit
8d95a474
authored
Feb 27, 2014
by
antirez
Browse files
Added two more BITCOUNT tests stressing misaligned access.
parent
2a7847a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/bitops.tcl
View file @
8d95a474
...
@@ -98,6 +98,18 @@ start_server {tags {"bitops"}} {
...
@@ -98,6 +98,18 @@ start_server {tags {"bitops"}} {
}
}
}
{
1
}
}
{
1
}
test
{
BITCOUNT misaligned prefix
}
{
r del str
r set str ab
r bitcount str 1 -1
}
{
3
}
test
{
BITCOUNT misaligned prefix + full words + remainder
}
{
r del str
r set str __PPxxxxxxxxxxxxxxxxRR__
r bitcount str 2 -3
}
{
74
}
test
{
BITOP NOT
(
empty string
)}
{
test
{
BITOP NOT
(
empty string
)}
{
r set s
""
r set s
""
r bitop not dest s
r bitop not dest 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