fixes pc
This commit is contained in:
parent
495745c19c
commit
d4273dfb13
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user