summaryrefslogtreecommitdiff
path: root/tests/unit/bitfield.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/bitfield.tcl')
-rw-r--r--tests/unit/bitfield.tcl14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/unit/bitfield.tcl b/tests/unit/bitfield.tcl
index 368ff9fc6..d76452b1b 100644
--- a/tests/unit/bitfield.tcl
+++ b/tests/unit/bitfield.tcl
@@ -184,4 +184,18 @@ start_server {tags {"bitops"}} {
}
}
}
+
+ test {BITFIELD regression for #3221} {
+ r set bits 1
+ r bitfield bits get u1 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
+ }
}