Skip to content

Commit 2457c6d

Browse files
committed
format tests
1 parent 2d85083 commit 2457c6d

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

basics/checking-accounts/asm/src/lib.rs

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ mod tests {
9494
);
9595

9696
let err = svm.send_transaction(tx).unwrap_err();
97-
assert_eq!(err.err, TransactionError::InstructionError(0, InstructionError::Custom(1)));
97+
assert_eq!(
98+
err.err,
99+
TransactionError::InstructionError(0, InstructionError::Custom(1))
100+
);
98101
}
99102

100103
#[test]
@@ -129,7 +132,10 @@ mod tests {
129132
);
130133

131134
let err = svm.send_transaction(tx).unwrap_err();
132-
assert_eq!(err.err, TransactionError::InstructionError(0, InstructionError::Custom(2)));
135+
assert_eq!(
136+
err.err,
137+
TransactionError::InstructionError(0, InstructionError::Custom(2))
138+
);
133139
}
134140

135141
#[test]
@@ -165,7 +171,10 @@ mod tests {
165171
);
166172

167173
let err = svm.send_transaction(tx).unwrap_err();
168-
assert_eq!(err.err, TransactionError::InstructionError(0, InstructionError::Custom(3)));
174+
assert_eq!(
175+
err.err,
176+
TransactionError::InstructionError(0, InstructionError::Custom(3))
177+
);
169178
}
170179

171180
#[test]
@@ -197,7 +206,10 @@ mod tests {
197206
);
198207

199208
let err = svm.send_transaction(tx).unwrap_err();
200-
assert_eq!(err.err, TransactionError::InstructionError(0, InstructionError::Custom(4)));
209+
assert_eq!(
210+
err.err,
211+
TransactionError::InstructionError(0, InstructionError::Custom(4))
212+
);
201213
}
202214

203215
#[test]
@@ -230,7 +242,10 @@ mod tests {
230242
);
231243

232244
let err = svm.send_transaction(tx).unwrap_err();
233-
assert_eq!(err.err, TransactionError::InstructionError(0, InstructionError::Custom(6)));
245+
assert_eq!(
246+
err.err,
247+
TransactionError::InstructionError(0, InstructionError::Custom(6))
248+
);
234249
}
235250

236251
#[test]
@@ -264,6 +279,9 @@ mod tests {
264279
);
265280

266281
let err = svm.send_transaction(tx).unwrap_err();
267-
assert_eq!(err.err, TransactionError::InstructionError(0, InstructionError::Custom(5)));
282+
assert_eq!(
283+
err.err,
284+
TransactionError::InstructionError(0, InstructionError::Custom(5))
285+
);
268286
}
269287
}

basics/checking-accounts/asm/tests/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { describe, test } from "node:test";
21
import assert from "node:assert";
2+
import { describe, test } from "node:test";
33
import { Keypair, PublicKey, SystemProgram, Transaction, TransactionInstruction } from "@solana/web3.js";
44
import { start } from "solana-bankrun";
55

0 commit comments

Comments
 (0)