diff --git a/takolib/src/parser/mod.rs b/takolib/src/parser/mod.rs index 75bf69c9..65b84009 100644 --- a/takolib/src/parser/mod.rs +++ b/takolib/src/parser/mod.rs @@ -1073,10 +1073,15 @@ pub mod tests { setup("a << b + 1").expect("Disallowed syntax"); } + #[test] + fn parse_atom_atom_in_file() { + setup("$a $b").expect("Top level allowed syntax"); + } + #[test] #[should_panic] // TODO(errors): Implement! - fn parse_atom_atom() { - setup("$a $b").expect("Disallowed syntax"); + fn parse_atom_atom_in_expr() { + setup("($a $b)").expect("Disallowed syntax"); } #[test]