mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
use super::*;
This commit is contained in:
parent
c8ac436b84
commit
a7a1cb3ecd
|
@ -72,6 +72,7 @@ fn alloc_error(layout: Layout) -> ! {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
|
use super::*;
|
||||||
use alloc::boxed::Box;
|
use alloc::boxed::Box;
|
||||||
|
|
||||||
#[test_case]
|
#[test_case]
|
||||||
|
@ -85,7 +86,7 @@ mod test {
|
||||||
|
|
||||||
let address = &*first_box as *const _ as usize;
|
let address = &*first_box as *const _ as usize;
|
||||||
assert!(
|
assert!(
|
||||||
address >= super::EWRAM_START && address < super::EWRAM_END,
|
address >= EWRAM_START && address < EWRAM_END,
|
||||||
"ewram is located between 0x0200_0000 and 0x0204_0000, address was actually found to be {:#010X}",
|
"ewram is located between 0x0200_0000 and 0x0204_0000, address was actually found to be {:#010X}",
|
||||||
address
|
address
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue