pibizza commented on code in PR #6068:
URL:
https://github.com/apache/incubator-kie-drools/pull/6068#discussion_r1745341391
##########
kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/ast/forexpressioniterators/LocalDateRangeIteratorTest.java:
##########
@@ -65,16 +62,14 @@ void hasNextDescendantTest() {
@Test
void nextAscendantTest() {
- List<LocalDate> expected = Arrays.asList(LocalDate.of(2021, 1, 1),
LocalDate.of(2021, 1, 2), LocalDate.of(2021, 1, 3));
LocalDateRangeIterator iterator = new LocalDateRangeIterator(before,
after);
- IntStream.range(0, 3).forEach(i ->
assertThat(expected.get(i)).isEqualTo(iterator.next()));
+
assertThat(iterator).toIterable().containsExactlyInAnyOrder(LocalDate.of(2021,
1, 1), LocalDate.of(2021, 1, 2), LocalDate.of(2021, 1, 3));
Review Comment:
@JaredDavis22 you are right. this is a mistake. Shame on me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]