Skip to content

Commit cd0e1fa

Browse files
committed
Add 'noneMatch' test case
1 parent e7c58b1 commit cd0e1fa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/java/io/github/dgroup/enumerable4j/AfterTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
import org.junit.jupiter.api.Test;
2828
import org.llorllale.cactoos.matchers.Assertion;
29+
import org.llorllale.cactoos.matchers.HasSize;
2930
import org.llorllale.cactoos.matchers.HasValues;
3031

3132
/**
@@ -92,4 +93,13 @@ void allAfterFirst() {
9293
).affirm();
9394
}
9495

96+
@Test
97+
void noneMatch() {
98+
new Assertion<>(
99+
"No one elements corresponds the condition, an empty collection is returned",
100+
new Linked<>(1, 2, 3).after(n -> n < 0),
101+
new HasSize(0)
102+
).affirm();
103+
}
104+
95105
}

0 commit comments

Comments
 (0)