Connor Wood 5 жил өмнө
parent
commit
164d113773
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      src/lib.rs

+ 3 - 0
src/lib.rs

@@ -223,6 +223,7 @@ mod tests {
     use super::{load, load_with_offset};
     use super::{BootInformation, ElfSectionFlags, ElfSectionType};
     use super::FramebufferType;
+    use super::MemoryAreaType;
 
     #[test]
     fn no_tags() {
@@ -1066,10 +1067,12 @@ mod tests {
         assert_eq!(0x00000000, mm1.start_address());
         assert_eq!(0x009_FC00, mm1.end_address());
         assert_eq!(0x009_FC00, mm1.size());
+        assert_eq!(MemoryAreaType::Available, mm1.typ());
         let mm2 = mm.next().unwrap();
         assert_eq!(0x010_0000, mm2.start_address());
         assert_eq!(0x7FE_0000, mm2.end_address());
         assert_eq!(0x7EE_0000, mm2.size());
+        assert_eq!(MemoryAreaType::Available, mm2.typ());
         assert!(mm.next().is_none());
 
         // Test the RSDP tag