Skip to content

Commit b2c93c6

Browse files
committed
fix(lib): add a check to integration test
1 parent 6f196e3 commit b2c93c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cambridge-asm/tests/extension.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
extern crate cambridge_asm;
33

44
inst! {
5-
custom | ctx | override { println!("This is a custom instruction"); ctx.mar += 1; }
5+
custom | ctx | override { println!("This is a custom instruction"); ctx.mar += 1; ctx.gprs[0] = 20;}
66
}
77

88
extend! {
@@ -32,4 +32,5 @@ NONE:
3232
let mut e = cambridge_asm::parse::parse(PROG, get_instruction);
3333
e.exec();
3434
assert_eq!(e.ctx.acc, 65);
35+
assert_eq!(e.ctx.gprs[0], 20);
3536
}

0 commit comments

Comments
 (0)