Adding a char Range test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882855 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5adce14980
commit
d45e05d584
|
@ -62,6 +62,13 @@ public class RangeTest extends TestCase {
|
|||
Range.between(c, c);
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
public void testRangeOfChars() {
|
||||
Range<Character> chars = Range.between('a', 'z');
|
||||
assertTrue(chars.contains('b'));
|
||||
assertFalse(chars.contains('B'));
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue