dock-substrate icon indicating copy to clipboard operation
dock-substrate copied to clipboard

[Tests] add macro to replace ext().execute_with() boilerplate in runtime module tests

Open bddap opened this issue 5 years ago • 0 comments

Curent:

fn test_da_thing() {
    ext().execute_with(|| {
        assert!(DA_THING);
    });
}

Desired:

#[needs_ext]
fn test_da_thing() {
    assert!(DA_THING);
}

bddap avatar May 12 '20 16:05 bddap