mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
Tests must come at the end
This commit is contained in:
parent
845e3d027a
commit
7454563325
|
@ -350,20 +350,6 @@ impl VBlank {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[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"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
/// The behaviour of this function is undefined in the sense that it will output
|
||||
/// some information in some way that can be interpreted in a way to give some
|
||||
|
@ -384,3 +370,17 @@ pub fn profiler(timer: &mut crate::timer::Timer, period: u16) -> InterruptHandle
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[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"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue