diff --git a/tests/at-error.rs b/tests/at-error.rs new file mode 100644 index 0000000..2d9f873 --- /dev/null +++ b/tests/at-error.rs @@ -0,0 +1,15 @@ +#![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");