Skip to content

Commit 4fa49d8

Browse files
committed
tests: add a test for the fixed assertion failure.
1 parent 45accfd commit 4fa49d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

macros/tests/basic.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,11 @@ testcases![
176176
A("abab") => "1:1-1:5",
177177
A("aba") => "1:1-1:4",
178178
A("b") => r#"1:1: error: expected ["a"]"#;
179+
180+
nested_or {
181+
A = x:"x" { a:"a" | b:"b" };
182+
}:
183+
// FIXME(eddyb) figure out why the output is not `... => A {...}`.
184+
A("xa") => "\
185+
1:1-1:3 => ";
179186
];

0 commit comments

Comments
 (0)