Skip to content

Commit b5235de

Browse files
committed
Add #[should_panic] test
1 parent b06d99b commit b5235de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test-cargo-miri/tests/test.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ fn entropy_rng() {
4141
fn num_cpus() {
4242
assert_eq!(num_cpus::get(), 1);
4343
}
44+
45+
#[test]
46+
#[should_panic]
47+
fn do_panic() { // In large, friendly letters :)
48+
panic!("Explicit panic from test!");
49+
}

0 commit comments

Comments
 (0)