Skip to content

Commit faac95a

Browse files
committed
Fix failing tests.
1 parent 59d34c8 commit faac95a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

hamcrest/src/test/java/org/hamcrest/collection/IsArrayContainingInAnyOrderTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public void testAppliesMatchersInAnyOrder() {
3636
public void testMismatchesItemsInAnyOrder() {
3737
Matcher<Integer[]> matcher = arrayContainingInAnyOrder(1, 2, 3);
3838
assertMismatchDescription("was null", matcher, null);
39-
assertMismatchDescription("No item matches: <1>, <2>, <3> in []", matcher, new Integer[] {});
40-
assertMismatchDescription("No item matches: <2>, <3> in [<1>]", matcher, new Integer[] {1});
41-
assertMismatchDescription("Not matched: <4>", matcher, new Integer[] {4,3,2,1});
39+
assertMismatchDescription("no item matches: <1>, <2>, <3> in []", matcher, new Integer[] {});
40+
assertMismatchDescription("no item matches: <2>, <3> in [<1>]", matcher, new Integer[] {1});
41+
assertMismatchDescription("not matched: <4>", matcher, new Integer[] {4,3,2,1});
4242
}
4343
}

hamcrest/src/test/java/org/hamcrest/collection/IsArrayContainingInOrderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public void testAppliesMatchersInOrder() {
3333
public void testMismatchesItemsInOrder() {
3434
Matcher<Integer[]> matcher = arrayContaining(1, 2, 3);
3535
assertMismatchDescription("was null", matcher, null);
36-
assertMismatchDescription("No item matched: <1>", matcher, new Integer[] {});
37-
assertMismatchDescription("No item matched: <2>", matcher, new Integer[] {1});
36+
assertMismatchDescription("no item was <1>", matcher, new Integer[] {});
37+
assertMismatchDescription("no item was <2>", matcher, new Integer[] {1});
3838
assertMismatchDescription("item 0: was <4>", matcher, new Integer[] {4,3,2,1});
3939
assertMismatchDescription("item 2: was <4>", matcher, new Integer[] {1,2, 4});
4040
}

0 commit comments

Comments
 (0)