string_transform_test

Macro string_transform_test 

Source
macro_rules! string_transform_test {
    (
        $test_name:ident,
        $transform:expr,
        original: $original:expr,
        length_preserved: $should_preserve:expr
    ) => { ... };
}
Expand description

Test that a string transformation preserves certain properties.

§Examples

string_transform_test!(
    test_bold_preserves_length,
    TitleStyle::Bold.apply("Test"),
    original: "Test",
    length_preserved: true
);