浏览代码

multiboot2: builder: more tests

Philipp Schuster 1 年之前
父节点
当前提交
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));
     }
 }