Skip to content

Commit 0d6daa4

Browse files
author
david.saff
committed
Inline references to both to reveal javac problem
1 parent 7d6a0eb commit 0d6daa4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hamcrest-unit-test/src/main/java/org/hamcrest/core/CombinableTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ public void bothAcceptsAndRejects() {
2020
assertThat(2, NOT_3_AND_NOT_4);
2121
assertThat(3, not(NOT_3_AND_NOT_4));
2222
}
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+
}
2329

2430
@Test
2531
public void acceptsAndRejectsThreeAnds() {

0 commit comments

Comments
 (0)