mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-26 00:48:34 +00:00
24 lines
277 B
Rust
24 lines
277 B
Rust
#[test]
|
|
fn a() {
|
|
println!("print from successful test");
|
|
// Should pass
|
|
}
|
|
|
|
#[test]
|
|
fn b() {
|
|
println!("print from failing test");
|
|
assert!(false);
|
|
}
|
|
|
|
#[test]
|
|
#[should_panic]
|
|
fn c() {
|
|
assert!(false);
|
|
}
|
|
|
|
#[test]
|
|
#[ignore = "msg"]
|
|
fn d() {
|
|
assert!(false);
|
|
}
|