Skip to content

Commit 8fed8bd

Browse files
committed
Make multiple glob tests self contained
1 parent 970f734 commit 8fed8bd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lrpar/cttests/src/calc_input.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ grammar: |
33
%grmtools {
44
yacckind: Original(YaccOriginalActionKind::UserAction),
55
recoverer: RecoveryKind::None,
6-
test_files: ["*.calc_input", "*.calc_input"],
6+
test_files: ["*.calc_input", "*.calc_input2"],
77
}
88
%start Expr
99
%actiontype Result<u64, ()>
@@ -46,4 +46,6 @@ extra_files:
4646
1 + 2 * 3
4747
input2.calc_input: |
4848
(1 + 2) * 3
49+
input1.calc_input2: |
50+
2 * 3
4951

lrpar/cttests/src/ctfails/calc_bad_input.test

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ grammar: |
33
%grmtools {
44
yacckind: Original(YaccOriginalActionKind::UserAction),
55
recoverer: RecoveryKind::None,
6-
test_files: ["*.calc_input", "*.bad_input"]
6+
test_files: ["*.valid_input", "*.bad_input"]
77
}
88
%start Expr
99
%actiontype Result<u64, ()>
@@ -42,6 +42,7 @@ lexer: |
4242
\) ")"
4343
[\t\n ]+ ;
4444
extra_files:
45+
input1.valid_input: |
46+
(1 + 2) * 3
4547
input1.bad_input: |
4648
(1 + 2 * 3
47-

0 commit comments

Comments
 (0)