summaryrefslogtreecommitdiffstats
path: root/vendor/futures/tests/test_macro.rs
blob: 6adf51d8bb55ee5c0f483d73a652cce03403b45f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[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(())
}