Create a testable trait for printing test messages automatically

This commit is contained in:
Philipp Oppermann
2020-06-08 11:04:03 +02:00
parent a1c7931a77
commit 9f9ff59489
4 changed files with 19 additions and 17 deletions

View File

@@ -13,7 +13,7 @@ pub extern "C" fn _start() -> ! {
}
fn should_fail() {
serial_print!("should_fail... ");
serial_print!("should_panic::should_fail...\t");
assert_eq!(0, 1);
}