mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-22 15:16:40 +11:00
fix associates test
This commit is contained in:
parent
c85331ddf6
commit
c8d51bd73a
1 changed files with 5 additions and 5 deletions
10
src/lib.rs
10
src/lib.rs
|
@ -184,15 +184,15 @@ mod test {
|
|||
}
|
||||
}
|
||||
|
||||
static mut IWRAM_IMPLICIT: u32 = 9;
|
||||
static mut IMPLICIT_STORAGE: u32 = 9;
|
||||
#[test_case]
|
||||
fn iwram_implicit_test(_gba: &mut Gba) {
|
||||
fn implicit_data_test(_gba: &mut Gba) {
|
||||
unsafe {
|
||||
let iwram_ptr = &mut IWRAM_IMPLICIT as *mut u32;
|
||||
let iwram_ptr = &mut IMPLICIT_STORAGE as *mut u32;
|
||||
let address = iwram_ptr as usize;
|
||||
assert!(
|
||||
address >= 0x0300_0000 && address < 0x0300_8000,
|
||||
"iwram is located beween 0x0300_0000 and 0x0300_8000, but was actually found to be at {:#010X}",
|
||||
address >= 0x0200_0000 && address < 0x0204_0000,
|
||||
"implicit data storage is expected to be in ewram, which is between 0x0300_0000 and 0x0300_8000, but was actually found to be at {:#010X}",
|
||||
address
|
||||
);
|
||||
let c = iwram_ptr.read_volatile();
|
||||
|
|
Loading…
Add table
Reference in a new issue