use syn::{parse_quote, DeriveInput};
use tlkit_expand::enumer::try_from;
#[test]
fn test_try_from_expand() -> syn::Result<()> {
let input: DeriveInput = parse_quote! {
#[derive(Debug, EnumTryFrom)]
pub enum Language {
Chinese,
English,
}
};
let token_stream = try_from::expand(input).unwrap().to_string();
println!("{token_stream}");
Ok(())
}