Skip to content

Commit

Permalink
#571 add more Range tests
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Dec 20, 2018
1 parent a0fb427 commit 136824a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/java/picocli/CommandLineArityTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public void testMaxSetter() {

@Test
public void testRangeEquals_OtherType() {
assertNotEquals("x", Range.valueOf("0"));
assertNotEquals(123, Range.valueOf("0"));
}

@Test
Expand All @@ -263,6 +263,11 @@ public void testRangeEquals_MinMaxVariable() {
assertNotEquals(Range.valueOf("2..2"), Range.valueOf("1..2"));
assertNotEquals(Range.valueOf("1..*"), Range.valueOf("1..2"));
assertEquals(Range.valueOf("1..*"), Range.valueOf("1..*"));

assertFalse(Range.valueOf("1..1").equals(Range.valueOf("1..2")));
assertFalse(Range.valueOf("2..2").equals(Range.valueOf("1..2")));
assertFalse(Range.valueOf("1..*").equals(Range.valueOf("1..2")));
assertTrue(Range.valueOf("1..*").equals(Range.valueOf("1..*")));
}

@Test
Expand Down

0 comments on commit 136824a

Please sign in to comment.