diff options
Diffstat (limited to 'askama_parser/src/tests.rs')
-rw-r--r-- | askama_parser/src/tests.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/askama_parser/src/tests.rs b/askama_parser/src/tests.rs index 703dd6a..742f0f3 100644 --- a/askama_parser/src/tests.rs +++ b/askama_parser/src/tests.rs @@ -807,3 +807,9 @@ fn fuzzed_target_recursion() { const TEMPLATE: &str = include_str!("../tests/target-recursion.txt"); assert!(Ast::from_str(TEMPLATE, &Syntax::default()).is_err()); } + +#[test] +fn fuzzed_unary_recursion() { + const TEMPLATE: &str = include_str!("../tests/unary-recursion.txt"); + assert!(Ast::from_str(TEMPLATE, &Syntax::default()).is_err()); +} |