mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
d77f636c63
I'm about to make some changes here, and it was making me uneasy to modify the output format without test coverage.
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);
|
|
}
|