소스 검색

multiboot2: builder: more tests

Philipp Schuster 2 년 전
부모
커밋
026ae5634b
3개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      multiboot2/src/boot_loader_name.rs
  2. 1 0
      multiboot2/src/command_line.rs
  3. 1 0
      multiboot2/src/module.rs

+ 1 - 0
multiboot2/src/boot_loader_name.rs

@@ -118,5 +118,6 @@ mod tests {
         let tag = BootLoaderNameTag::new(MSG);
         let bytes = tag.struct_as_bytes();
         assert_eq!(bytes, get_bytes());
+        assert_eq!(tag.name(), Ok(MSG));
     }
 }

+ 1 - 0
multiboot2/src/command_line.rs

@@ -127,5 +127,6 @@ mod tests {
         let tag = CommandLineTag::new(MSG);
         let bytes = tag.struct_as_bytes();
         assert_eq!(bytes, get_bytes());
+        assert_eq!(tag.cmdline(), Ok(MSG));
     }
 }

+ 1 - 0
multiboot2/src/module.rs

@@ -173,5 +173,6 @@ mod tests {
         let tag = ModuleTag::new(0, 0, MSG);
         let bytes = tag.struct_as_bytes();
         assert_eq!(bytes, get_bytes());
+        assert_eq!(tag.cmdline(), Ok(MSG));
     }
 }