matched_enums_macro 1.3.0

Contains the macro for matchable enums.
Documentation
use super::derive_ranged_impl;
use quote::quote;
use syn::ItemEnum;

#[test]
fn try_create_runtime_configurable_without_the_feature_enabled() {
    assert_eq!(
        derive_ranged_impl(
            syn::parse2::<ItemEnum>(quote! {
                #[derive(Matched)]
                #[matched_enum(allow_runtime_configurable=true)]
                enum Foo {}
            })
            .unwrap()
        )
        .is_ok(),
        cfg!(feature = "runtime_configurable")
    );
}