mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 21:40:58 +00:00
Extend test_syntax to check that canonicalization doesn't panic on the input
Importantly, this would have caught the issue discovered in #7279, prior to that landing on main.
This commit is contained in:
parent
e65460b0bf
commit
b4fa7294c7
387 changed files with 559 additions and 393 deletions
|
|
@ -11,7 +11,7 @@ fuzz_target!(|data: &[u8]| {
|
|||
let ast = input.parse_in(&arena);
|
||||
if let Ok(ast) = ast {
|
||||
if !ast.is_malformed() {
|
||||
input.check_invariants(|_| (), true);
|
||||
input.check_invariants(|_| (), true, None);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue