Skip to content

Commit

Permalink
Merge pull request #1236 from mozzy11/develop
Browse files Browse the repository at this point in the history
fix reflex
  • Loading branch information
mozzy11 authored Aug 13, 2024
2 parents f9bd77e + 403a7b3 commit 2cdc4df
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -890,13 +890,15 @@ public boolean doesDictionaryRelationRulesForReflexApply(Test potentialReflexTes

private boolean doesNumericRulesForReflexApply(Test potentialReflexTest, Result potentialTriggerResult) {
List<TestReflex> reflexesForResult = reflexResolver.getTestReflexesForResult(potentialTriggerResult);
return reflexesForResult.stream().anyMatch(test -> test.getAddedTest().equals(potentialReflexTest)
&& applyNumericRelationRulesForReflex(test, potentialTriggerResult));
return reflexesForResult.stream()
.anyMatch(test -> test.getAddedTest().getId().equals(potentialReflexTest.getId())
&& applyNumericRelationRulesForReflex(test, potentialTriggerResult));
}

private boolean doesGenericRulesForReflexApply(Test potentialReflexTest, Result potentialTriggerResult) {
List<TestReflex> reflexesForResult = reflexResolver.getTestReflexesForResult(potentialTriggerResult);
return reflexesForResult.stream().anyMatch(test -> test.getAddedTest().equals(potentialReflexTest)
&& applyTextRelationRulesForReflex(test, potentialTriggerResult));
return reflexesForResult.stream()
.anyMatch(test -> test.getAddedTest().getId().equals(potentialReflexTest.getId())
&& applyTextRelationRulesForReflex(test, potentialTriggerResult));
}
}

0 comments on commit 2cdc4df

Please sign in to comment.