Skip to content

Commit 1bedb9e

Browse files
committed
Ledger: move tests to directory tests
1 parent 280d1de commit 1bedb9e

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

ledger/src/scan_state/transaction_logic/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,4 +1313,3 @@ pub mod for_tests {
13131313
ledger.get_or_create_account(id, account).unwrap();
13141314
}
13151315
}
1316-

ledger/tests/transaction_logic_tests.rs renamed to ledger/tests/test_transaction_logic.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ fn test_cons_receipt_hash_ocaml() {
4848
nonce: Nonce::from_u32(1609569868),
4949
valid_until: Slot::from_u32(2127252111),
5050
memo: Memo([
51-
1, 32, 101, 26, 225, 104, 115, 118, 55, 102, 76, 118, 108, 78, 114, 50, 0, 115,
52-
110, 108, 53, 75, 109, 112, 50, 110, 88, 97, 76, 66, 76, 81, 235, 79,
51+
1, 32, 101, 26, 225, 104, 115, 118, 55, 102, 76, 118, 108, 78, 114, 50, 0, 115, 110,
52+
108, 53, 75, 109, 112, 50, 110, 88, 97, 76, 66, 76, 81, 235, 79,
5353
]),
5454
};
5555

@@ -81,8 +81,8 @@ fn test_receipt_hash_update() {
8181
nonce: Nonce::from_u32(15),
8282
valid_until: Slot::from_u32(-1i32 as u32),
8383
memo: Memo([
84-
1, 7, 84, 104, 101, 32, 49, 48, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
85-
0, 0, 0, 0, 0, 0, 0, 0, 0,
84+
1, 7, 84, 104, 101, 32, 49, 48, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
85+
0, 0, 0, 0, 0, 0, 0, 0,
8686
]),
8787
};
8888

@@ -94,14 +94,12 @@ fn test_receipt_hash_update() {
9494
let tx = SignedCommandPayload { common, body };
9595

9696
let mut prev =
97-
hex::decode("09ac04c9965b885acfc9c54141dbecfc63b2394a4532ea2c598d086b894bfb14")
98-
.unwrap();
97+
hex::decode("09ac04c9965b885acfc9c54141dbecfc63b2394a4532ea2c598d086b894bfb14").unwrap();
9998
prev.reverse();
10099
let prev_receipt_chain_hash = ReceiptChainHash(Fp::from_bytes(&prev).unwrap());
101100

102101
let mut next =
103-
hex::decode("3ecaa73739df77549a2f92f7decf822562d0593373cff1e480bb24b4c87dc8f0")
104-
.unwrap();
102+
hex::decode("3ecaa73739df77549a2f92f7decf822562d0593373cff1e480bb24b4c87dc8f0").unwrap();
105103
next.reverse();
106104
let next_receipt_chain_hash = ReceiptChainHash(Fp::from_bytes(&next).unwrap());
107105

0 commit comments

Comments
 (0)