zyn 0.5.4

A proc macro framework with templates, composable elements, and built-in diagnostics
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[test]
fn converts_to_string_literal() {
    let name = zyn::format_ident!("hello_world");
    let result = zyn::zyn!({ { name | str } });
    assert_eq!(result.to_string(), "\"hello_world\"");
}

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