fvm-macros 1.0.0

provide the macros for user to write contract more convenient
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[test]
fn macro_test() {
    let t = trybuild::TestCases::new();
    #[cfg(not(feature = "advance"))]
    t.pass("tests/ui/cases/pass_normal.rs");

    #[cfg(not(feature = "advance"))]
    t.compile_fail("tests/ui/cases/fail_no_storage.rs");

    #[cfg(feature = "advance")]
    t.compile_fail("tests/ui/cases/fail_advance_normal.rs");

    #[cfg(not(feature = "advance"))]
    t.compile_fail("tests/ui/cases/fail_normal_use_advance.rs");

    drop(t);
}