mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +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
|
r bitcount no-key
|
||||||
} 0
|
} 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}
|
catch {unset num}
|
||||||
foreach vec [list "" "\xaa" "\x00\x00\xff" "foobar" "123"] {
|
foreach vec [list "" "\xaa" "\x00\x00\xff" "foobar" "123"] {
|
||||||
incr num
|
incr num
|
||||||
|
Loading…
x
Reference in New Issue
Block a user