grass/tests/at-error.rs
2020-08-11 20:22:24 -04:00

18 lines
420 B
Rust

#[macro_use]
mod macros;
error!(
error_dblquoted_string,
"a {\n @error \"hi\";\n}\n", "Error: \"hi\""
);
error!(
error_sglquoted_string,
"a {\n @error 'hi';\n}\n", "Error: \"hi\""
);
error!(error_unquoted_string, "a {\n @error hi;\n}\n", "Error: hi");
error!(error_arithmetic, "a {\n @error 1 + 1;\n}\n", "Error: 2");
error!(
error_is_inspected,
"a {\n @error null;\n}\n", "Error: null"
);