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:
Henri Yandell 2009-11-21 08:08:52 +00:00
parent 5adce14980
commit d45e05d584
1 changed files with 7 additions and 0 deletions

View File

@ -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'));
}
// --------------------------------------------------------------------------