mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-25 01:01:34 +11:00
Assert that gba struct is zero sized
This commit is contained in:
parent
75bd475f08
commit
a331909370
|
@ -173,6 +173,12 @@ mod test {
|
||||||
assert_eq!(1, 1);
|
assert_eq!(1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test_case]
|
||||||
|
fn gba_struct_is_zero_sized(_gba: &mut Gba) {
|
||||||
|
use core::mem;
|
||||||
|
assert_eq!(mem::size_of::<Gba>(), 0);
|
||||||
|
}
|
||||||
|
|
||||||
#[test_case]
|
#[test_case]
|
||||||
fn wait_30_frames(_gba: &mut Gba) {
|
fn wait_30_frames(_gba: &mut Gba) {
|
||||||
let vblank = crate::interrupt::VBlank::get();
|
let vblank = crate::interrupt::VBlank::get();
|
||||||
|
|
Loading…
Reference in a new issue