]> git.saurik.com Git - redis.git/blobdiff - tests/unit/bitops.tcl
fix a typo in a comment
[redis.git] / tests / unit / bitops.tcl
index 5945d32d710c5024e89cc189e665f06734fbeb6e..127a0e680346ad4d0e783f1751b5e6151f1a1bb7 100644 (file)
@@ -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)} {