Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yesamer committed Jun 21, 2024
1 parent b52f7a7 commit b5ce1ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ public void filterIndex(final BaseVariantTest.VariantTestConf conf) throws Throw
assertThat(results.getDecisionResultByName("Match by index").getResult()).asList().contains(new BigDecimal(5));

results = runtime.evaluateByName(model, new DMNContextImpl(Collections.singletonMap("Number Input", -2)), "Match by index");
assertThat(results.getDecisionResultByName("Match by index").getResult()).isEqualTo(new BigDecimal(9));
assertThat(results.getDecisionResultByName("Match by index").getResult()).asList().isEmpty();

results = runtime.evaluateByName(model, new DMNContextImpl(Collections.singletonMap("Number Input", 0)), "Match by index");
assertThat(results.getMessages()).hasSizeGreaterThan(0);
assertThat(results.getDecisionResultByName("Match by index").getResult()).asList().isEmpty();
}

@MethodSource("params")
Expand Down

0 comments on commit b5ce1ad

Please sign in to comment.