blob: 28902b018cee61c9cd85cb8eb597ea5d678e2198 [file] [log] [blame]
#![cfg(not(target_os = "unknown"))]
use async_std::task;
#[test]
fn smoke() {
let res = task::block_on(async { 1 + 2 });
assert_eq!(res, 3);
}
#[test]
#[should_panic = "boom"]
fn panic() {
task::block_on(async {
// This panic should get propagated into the parent thread.
panic!("boom");
});
}