1
0
Fork 0
firefox/third_party/rust/futures/tests/test_macro.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
359 B
Rust

#[futures_test::test]
async fn it_works() {
let fut = async { true };
assert!(fut.await);
let fut = async { false };
assert!(!fut.await);
}
#[should_panic]
#[futures_test::test]
async fn it_is_being_run() {
let fut = async { false };
assert!(fut.await);
}
#[futures_test::test]
async fn return_ty() -> Result<(), ()> {
Ok(())
}