Skip to content

Instantly share code, notes, and snippets.

@tbg
Last active November 16, 2015 02:30
Show Gist options
  • Save tbg/e1e0a4091136dd281ab3 to your computer and use it in GitHub Desktop.
Save tbg/e1e0a4091136dd281ab3 to your computer and use it in GitHub Desktop.
mod tests {
use {MemoryArea, MemoryMapTag};
#[test]
fn it_works() {
let area1 = MemoryArea{base_addr:1024, length: 1024, typ: 1, _reserved: 0 };
let tag = MemoryMapTag {
typ: 1,
size: 2048,
entry_size: 512,
entry_version: 1,
first_area: area1,
};
tag.memory_areas().filter(|area| area.base_addr > 0).min_by(|area| area.base_addr);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment