Macro expect_test::expect

source ·
macro_rules! expect {
    [$data:literal] => { ... };
    [[$data:literal]] => { ... };
    [] => { ... };
    [[]] => { ... };
}
Expand description

Creates an instance of Expect from string literal:

expect![["
    Foo { value: 92 }
"]];
expect![r#"{"Foo": 92}"#];

Leading indentation is stripped.