zyn 0.5.4

A proc macro framework with templates, composable elements, and built-in diagnostics
Documentation
#[test]
fn from_lower() {
    let name = zyn::format_ident!("foo");
    let result = zyn::zyn!({ { name | camel } });
    assert_eq!(result.to_string(), "foo");
}

#[test]
fn from_snake() {
    let name = zyn::format_ident!("foo_bar");
    let result = zyn::zyn!({ { name | camel } });
    assert_eq!(result.to_string(), "fooBar");
}

#[test]
fn from_pascal() {
    let name = zyn::format_ident!("FooBar");
    let result = zyn::zyn!({ { name | camel } });
    assert_eq!(result.to_string(), "fooBar");
}

#[test]
fn from_camel() {
    let name = zyn::format_ident!("fooBar");
    let result = zyn::zyn!({ { name | camel } });
    assert_eq!(result.to_string(), "fooBar");
}

#[test]
fn from_screaming() {
    let name = zyn::format_ident!("FOO_BAR");
    let result = zyn::zyn!({ { name | camel } });
    assert_eq!(result.to_string(), "fooBar");
}

#[test]
fn single_char() {
    let name = zyn::format_ident!("A");
    let result = zyn::zyn!({ { name | camel } });
    assert_eq!(result.to_string(), "a");
}