Skip to content

Commit

Permalink
[incubator-kie-drools#5709] [new-parser] Some rules do not fire in Mu…
Browse files Browse the repository at this point in the history
…ltiKieBaseTest (apache#5794)
  • Loading branch information
tkobayas committed Oct 11, 2024
1 parent 77ff75c commit f8ee445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,9 @@ void parse_simpleRuleWithBindings() throws Exception {

assertThat(rule.getName()).isEqualTo("simple_rule");

assertThat(rule.getStartCharacter()).isEqualTo(803);
assertThat(rule.getEndCharacter()).isEqualTo(996);

assertThat(rule.getConsequenceLine()).isEqualTo(22);
assertThat(rule.getConsequencePattern()).isEqualTo(2);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ public RuleDescr visitRuledef(DRLParser.RuledefContext ctx) {
ruleDescr.setConsequence(trimThen(getTokenTextPreservingWhitespace(ctx.rhs(), tokenStream))); // RHS is just a text
}

populateStartEnd(ruleDescr, ctx);
return ruleDescr;
}

Expand Down

0 comments on commit f8ee445

Please sign in to comment.