We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d6a0eb commit 0d6daa4Copy full SHA for 0d6daa4
hamcrest-unit-test/src/main/java/org/hamcrest/core/CombinableTest.java
@@ -20,6 +20,12 @@ public void bothAcceptsAndRejects() {
20
assertThat(2, NOT_3_AND_NOT_4);
21
assertThat(3, not(NOT_3_AND_NOT_4));
22
}
23
+
24
+ @Test
25
+ public void bothAcceptsAndRejectsInline() {
26
+ assertThat(2, CombinableMatcher.both(not(equalTo(3))).and(not(equalTo(4))));
27
+ assertThat(3, not(CombinableMatcher.both(not(equalTo(3))).and(not(equalTo(4)))));
28
+ }
29
30
@Test
31
public void acceptsAndRejectsThreeAnds() {
0 commit comments