]> 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 fd44c0b803096dd01955ddf9f3bee4cc14fc77e4..2c0bd53492d0c4a83f2727af778a1e38c56fec28 100644 (file)
@@ -1,4 +1,4 @@
-start_server {} {
+start_server {tags {"hash"}} {
     test {HSET/HLEN - Small hash creation} {
         array set smallhash {}
         for {set i 0} {$i < 8} {incr i} {
@@ -15,8 +15,8 @@ start_server {} {
     } {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 {} {
     } {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 {}