mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
Regression test for #3282.
This commit is contained in:
parent
41d804d9dc
commit
212f157855
@ -43,6 +43,16 @@ start_server {tags {"bitops"}} {
|
||||
r bitcount no-key
|
||||
} 0
|
||||
|
||||
test {BITCOUNT returns 0 with out of range indexes} {
|
||||
r set str "xxxx"
|
||||
r bitcount str 4 10
|
||||
} 0
|
||||
|
||||
test {BITCOUNT returns 0 with negative indexes where start > end} {
|
||||
r set str "xxxx"
|
||||
r bitcount str -6 -7
|
||||
} 0
|
||||
|
||||
catch {unset num}
|
||||
foreach vec [list "" "\xaa" "\x00\x00\xff" "foobar" "123"] {
|
||||
incr num
|
||||
|
Loading…
Reference in New Issue
Block a user