grass/tests/at-error.rs
2020-05-16 16:56:17 -04:00

20 lines
435 B
Rust

#![cfg(test)]
#[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"
);