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
82d2e295
"utils/vscode:/vscode.git/clone" did not exist on "3c43e984db6289cf5da4bb4e1dc674dff353712f"
Commit
82d2e295
authored
Feb 27, 2014
by
antirez
Browse files
Added two more BITCOUNT tests stressing misaligned access.
parent
a3eb3f9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/bitops.tcl
View file @
82d2e295
...
...
@@ -98,6 +98,18 @@ start_server {tags {"bitops"}} {
}
}
{
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
)}
{
r set 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