]> git.saurik.com Git - redis.git/blobdiff - tests/unit/type/hash.tcl
Change tests to use either the inline or the multibulk protocol
[redis.git] / tests / unit / type / hash.tcl
index ef49a27d892566558d0d6a918330084a70c30b75..2c0bd53492d0c4a83f2727af778a1e38c56fec28 100644 (file)
@@ -15,8 +15,8 @@ start_server {tags {"hash"}} {
     } {8}
 
     test {Is the small hash encoded with a zipmap?} {
-        r debug object smallhash
-    } {*zipmap*}
+        assert_encoding zipmap smallhash
+    }
 
     test {HSET/HLEN - Big hash creation} {
         array set bighash {}
@@ -34,8 +34,8 @@ start_server {tags {"hash"}} {
     } {1024}
 
     test {Is the big hash encoded with a zipmap?} {
-        r debug object bighash
-    } {*hashtable*}
+        assert_encoding hashtable bighash
+    }
 
     test {HGET against the small hash} {
         set err {}