rust/src/test/run-fail/test-should-fail-bad-message.rs

11 lines
192 B
Rust
Raw Normal View History

// check-stdout
// error-pattern:thread 'test_foo' panicked at
// compile-flags: --test
2016-09-08 01:58:00 +00:00
// ignore-emscripten
#[test]
#[should_panic(expected = "foobar")]
fn test_foo() {
panic!("blah")
}