mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-10 09:01:34 +11:00
21 lines
430 B
Rust
21 lines
430 B
Rust
#![no_std]
|
|
#![no_main]
|
|
// This is required to allow writing tests
|
|
#![cfg_attr(test, feature(custom_test_frameworks))]
|
|
#![cfg_attr(test, reexport_test_harness_main = "test_main")]
|
|
#![cfg_attr(test, test_runner(agb::test_runner::test_runner))]
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
#[test_case]
|
|
fn it_works(_gba: &mut agb::Gba) {
|
|
assert_eq!(1, 1);
|
|
}
|
|
}
|
|
|
|
#[cfg(test)]
|
|
#[agb::entry]
|
|
fn main(gba: agb::Gba) -> ! {
|
|
loop {}
|
|
}
|