Skip to content

Commit 17667b0

Browse files
committed
added additional lessThan test
1 parent d70874b commit 17667b0

2 files changed

Lines changed: 129 additions & 28 deletions

File tree

.idea/workspace.xml

Lines changed: 126 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hamcrest-unit-test/src/main/java/org/hamcrest/number/OrderingComparisonTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ public void testMismatchDescriptions() {
3030
assertMismatchDescription("<0> was less than <1>", greaterThan(1), 0);
3131
assertMismatchDescription("<1> was equal to <1>", greaterThan(1), 1);
3232
assertMismatchDescription("<1> was greater than <0>", lessThan(0), 1);
33+
assertMismatchDescription("<2> was equal to <2>", lessThan(2), 2);
3334
}
34-
35+
3536
public void testComparesObjectsForGreaterThan() {
3637
assertThat(2, greaterThan(1));
3738
assertThat(0, not(greaterThan(1)));
@@ -57,7 +58,7 @@ public void testSupportsDifferentTypesOfComparableObjects() {
5758
assertThat(1.1, greaterThan(1.0));
5859
assertThat("cc", greaterThan("bb"));
5960
}
60-
61+
6162
public void testComparesBigDecimalsWithDifferentScalesCorrectlyForIssue20() {
6263
assertThat(new BigDecimal("10.0"), greaterThanOrEqualTo(new BigDecimal("10")));
6364
assertThat(new BigDecimal(10), greaterThanOrEqualTo(new BigDecimal("10.0")));

0 commit comments

Comments
 (0)