Ian Goldberg 2 meses atrás
pai
commit
a90bde0b2c
1 arquivos alterados com 12 adições e 12 exclusões
  1. 12 12
      tests/wallet.rs

+ 12 - 12
tests/wallet.rs

@@ -28,20 +28,20 @@ macro_rules! protos_def {
         }
 
         $proto_macro! { $wallet_spend,
-                  [ W: Wallet { randid: R, balance: H },
-                    I: Item { serialno: H, price: H } ],
-                  N: Wallet { randid: J, balance: H },
-                  (0..=100000000).contains(N.balance),
-                  W.balance = N.balance + I.price
-                }
+          [ W: Wallet { randid: R, balance: H },
+            I: Item { serialno: H, price: H } ],
+          N: Wallet { randid: J, balance: H },
+          (0..=100000000).contains(N.balance),
+          W.balance = N.balance + I.price
+        }
 
         $proto_macro! { $wallet_spend_with_fee<fee>,
-                 [ W: Wallet { randid: R, balance: H },
-                   I: Item { serialno: H, price: H } ],
-                 N: Wallet { randid: J, balance: H },
-                 (0..=100000000).contains(N.balance),
-                 W.balance = N.balance + I.price + fee
-               }
+          [ W: Wallet { randid: R, balance: H },
+            I: Item { serialno: H, price: H } ],
+          N: Wallet { randid: J, balance: H },
+          (0..=100000000).contains(N.balance),
+          W.balance = N.balance + I.price + fee
+        }
 
         #[test]
         fn $test_wallet() -> Result<(), CMZError> {