Skip to content

Commit 026ae56

Browse files
committed
multiboot2: builder: more tests
1 parent 7d1abed commit 026ae56

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

multiboot2/src/boot_loader_name.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,6 @@ mod tests {
118118
let tag = BootLoaderNameTag::new(MSG);
119119
let bytes = tag.struct_as_bytes();
120120
assert_eq!(bytes, get_bytes());
121+
assert_eq!(tag.name(), Ok(MSG));
121122
}
122123
}

multiboot2/src/command_line.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,6 @@ mod tests {
127127
let tag = CommandLineTag::new(MSG);
128128
let bytes = tag.struct_as_bytes();
129129
assert_eq!(bytes, get_bytes());
130+
assert_eq!(tag.cmdline(), Ok(MSG));
130131
}
131132
}

multiboot2/src/module.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,6 @@ mod tests {
173173
let tag = ModuleTag::new(0, 0, MSG);
174174
let bytes = tag.struct_as_bytes();
175175
assert_eq!(bytes, get_bytes());
176+
assert_eq!(tag.cmdline(), Ok(MSG));
176177
}
177178
}

0 commit comments

Comments
 (0)