feat(parser,execution-engine): allow :error: in fail (#696)

The `(fail :error:)` was previously rejected by parser.  Now it is
executed, but is of limited use.
This commit is contained in:
Ivan Boldyrev
2023-09-19 11:21:30 +04:00
committed by GitHub
parent d41f7646d9
commit bd80a127ea
7 changed files with 1507 additions and 1307 deletions

View File

@ -381,3 +381,10 @@ fn deeply_nested() {
let expected = include_str!("deeply_nested_expected.txt");
assert_eq!(output, expected);
}
#[test]
fn fail_error() {
let script = r#"(fail :error:)"#;
let output = beautify_to_string(script).unwrap();
assert_eq!(output, "fail :error:\n");
}