Skip to content

Commit 902a356

Browse files
committed
rename rule_TEST to expr_TEST
1 parent 6f8af96 commit 902a356

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rust/cbork-cddl-parser/src/grammar/cddl_test.pest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
// cspell: words assigng genericparm genericarg rangeop ctlop
88
// cspell: words grpchoice grpent memberkey bareword optcom
99

10-
/// Test Expression for the `rule` Rule.
11-
rule_TEST = ${ SOI ~ expr ~ EOI }
10+
/// Test Expression for the `expr` Rule.
11+
expr_TEST = ${ SOI ~ expr ~ EOI }
1212

1313
/// Test Expression for the `typename` Rule.
1414
typename_TEST = ${ SOI ~ typename ~ EOI }

rust/cbork-cddl-parser/tests/rules.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ fn check_rule_type_composition() {
9191
.map(|(input, _)| input)
9292
.collect::<Vec<_>>();
9393

94-
common::check_tests_rule(Rule::rule_TEST, &passes, &fails);
94+
common::check_tests_rule(Rule::expr_TEST, &passes, &fails);
9595
}
9696

9797
/// Test if the `rule` rule passes properly for group variant.
9898
#[test]
9999
fn check_rule_group() {
100-
common::check_tests_rule(Rule::rule_TEST, RULE_GROUP_PASSES, RULE_GROUP_FAILS);
100+
common::check_tests_rule(Rule::expr_TEST, RULE_GROUP_PASSES, RULE_GROUP_FAILS);
101101
}

0 commit comments

Comments
 (0)