Assert that gba struct is zero sized

This commit is contained in:
Gwilym Kuiper 2021-11-22 19:28:58 +00:00
parent 75bd475f08
commit a331909370

View file

@ -173,6 +173,12 @@ mod test {
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]
fn wait_30_frames(_gba: &mut Gba) {
let vblank = crate::interrupt::VBlank::get();