fixes pc
This commit is contained in:
@@ -72,8 +72,10 @@ mod test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn i_register_test() {
|
fn pc_test() {
|
||||||
|
let mut x = Chip8Registers::default();
|
||||||
|
x.set_pc(0x300);
|
||||||
|
assert_eq!(x.peek_pc(), 0x300);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user