We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7c58b1 commit cd0e1faCopy full SHA for cd0e1fa
src/test/java/io/github/dgroup/enumerable4j/AfterTest.java
@@ -26,6 +26,7 @@
26
27
import org.junit.jupiter.api.Test;
28
import org.llorllale.cactoos.matchers.Assertion;
29
+import org.llorllale.cactoos.matchers.HasSize;
30
import org.llorllale.cactoos.matchers.HasValues;
31
32
/**
@@ -92,4 +93,13 @@ void allAfterFirst() {
92
93
).affirm();
94
}
95
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
+
105
0 commit comments