despatma 0.1.1

Design Pattern Macro like Loki
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[test]
pub fn pass_abstract_factory() {
    macrotest::expand("tests/expand/abstract_factory/*.rs");
}

#[test]
pub fn pass_visitor() {
    macrotest::expand("tests/expand/visitor/*.rs");
}

#[test]
pub fn fail() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/fail/abstract_factory/*.rs");
    t.compile_fail("tests/fail/visitor/*.rs");
}