X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/bc70b8e5f4a161db0efbc95e3afda884b85b5229..1419406e8dd828f12b4810286d701b2b87ccd7ee:/tests/unit/bitops.tcl?ds=inline diff --git a/tests/unit/bitops.tcl b/tests/unit/bitops.tcl index c8f58ef1..0e3403bf 100644 --- a/tests/unit/bitops.tcl +++ b/tests/unit/bitops.tcl @@ -160,4 +160,10 @@ start_server {tags {"bitops"}} { catch {r bitop xor dest a b c d} e set e } {*ERR*} + + test {BITOP with empty string after non empty string (issue #529)} { + r flushdb + r set a "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + r bitop or x a b + } {32} }