mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
add test for length of interrupt table
This commit is contained in:
parent
d607f892e3
commit
ac5fd06106
|
@ -222,6 +222,15 @@ fn test_vblank_interrupt_handler(gba: &mut crate::Gba) {
|
|||
);
|
||||
}
|
||||
|
||||
#[test_case]
|
||||
fn test_interrupt_table_length(_gba: &mut crate::Gba) {
|
||||
assert_eq!(
|
||||
unsafe { INTERRUPT_TABLE.len() },
|
||||
Interrupt::Gamepak as usize + 1,
|
||||
"interrupt table should be able to store gamepak interrupt"
|
||||
);
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
|
||||
enum MutexState {
|
||||
Unlocked,
|
||||
|
|
Loading…
Reference in a new issue