X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/749aac72ad980bf08b04655634590b80e2fd014c..5513397de7526f0e5e01c1d29a37813008703d6d:/tests/unit/bitops.tcl diff --git a/tests/unit/bitops.tcl b/tests/unit/bitops.tcl index 5945d32d..dade8923 100644 --- a/tests/unit/bitops.tcl +++ b/tests/unit/bitops.tcl @@ -76,7 +76,12 @@ start_server {tags {"bitops"}} { test {BITCOUNT regression test for github issue #582} { r del str r setbit foo 0 1 - r bitcount foo 0 4294967296 + if {[catch {r bitcount foo 0 4294967296} e]} { + assert_match {*ERR*out of range*} $e + set _ 1 + } else { + set e + } } {1} test {BITOP NOT (empty string)} { @@ -165,7 +170,7 @@ start_server {tags {"bitops"}} { r lpush c foo catch {r bitop xor dest a b c d} e set e - } {*ERR*} + } {WRONGTYPE*} test {BITOP with empty string after non empty string (issue #529)} { r flushdb