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
9749e96f
Commit
9749e96f
authored
Oct 31, 2016
by
antirez
Browse files
Test: regression test for #3564 added.
parent
77b1abf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/bitfield.tcl
View file @
9749e96f
...
@@ -189,4 +189,13 @@ start_server {tags {"bitops"}} {
...
@@ -189,4 +189,13 @@ start_server {tags {"bitops"}} {
r set bits 1
r set bits 1
r bitfield bits get u1 0
r bitfield bits get u1 0
}
{
0
}
}
{
0
}
test
{
BITFIELD regression for #3564
}
{
for
{
set j 0
}
{
$j
< 10
}
{
incr j
}
{
r del mystring
set res
[
r BITFIELD mystring SET i8 0 10 SET i8 64 10 INCRBY i8 10 99900
]
assert
{
$res
eq
{
0 0 60
}}
}
r del mystring
}
}
}
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