lesurp / OptionalStruct

Macro copying a struct with Option fields. Useful for config initialization
Apache License 2.0
36 stars 13 forks source link

Add tests #5

Closed lesurp closed 7 years ago

lesurp commented 7 years ago

Can we even use the macros in the file they're generated in ? Eg

// just wrote my macro

#[cfg(test)]
mod test {
    #[derive(OptionalStruct)   // undefined derive
    struct TestStruct;
}