mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Add a trivial_assertion test
This commit is contained in:
@@ -32,3 +32,10 @@ fn panic(info: &PanicInfo) -> ! {
|
|||||||
println!("{}", info);
|
println!("{}", info);
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test_case]
|
||||||
|
fn trivial_assertion() {
|
||||||
|
print!("trivial assertion... ");
|
||||||
|
assert_eq!(1, 1);
|
||||||
|
println!("[ok]");
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user