Parcourir la source

zkas: Enable regression_001 test

parazyd il y a 3 ans
Parent
commit
31478a5305
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/zkas/decoder.rs

+ 2 - 1
src/zkas/decoder.rs

@@ -280,10 +280,11 @@ mod tests {
         let _dec = ZkBinary::decode(&data);
         let _dec = ZkBinary::decode(&data);
     }
     }
 
 
+    #[test]
     fn panic_regression_001() {
     fn panic_regression_001() {
         // Out-of-memory panic from string deserialization.
         // Out-of-memory panic from string deserialization.
         // Read `doc/src/zkas/bincode.md` to understand the input.
         // Read `doc/src/zkas/bincode.md` to understand the input.
         let data = vec![11u8, 1, 177, 53, 1, 0, 0, 0, 0, 255, 0, 204, 200, 72, 72, 72, 72, 1];
         let data = vec![11u8, 1, 177, 53, 1, 0, 0, 0, 0, 255, 0, 204, 200, 72, 72, 72, 72, 1];
         let _dec = ZkBinary::decode(&data);
         let _dec = ZkBinary::decode(&data);
     }
     }
-}
+}