Skip to content

Commit 945ae4b

Browse files
committed
Better test coverage.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1072761 13f79535-47bb-0310-9956-ffa450edef68
1 parent 30bcd86 commit 945ae4b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/test/org/apache/commons/codec/binary/BaseNCodecTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ public void testIsInAlphabetString() {
125125
}
126126

127127
public void testContainsAlphabetOrPad() {
128+
assertFalse(codec.containsAlphabetOrPad(null));
129+
assertFalse(codec.containsAlphabetOrPad(new byte[]{}));
128130
assertTrue(codec.containsAlphabetOrPad("OK".getBytes()));
129131
assertTrue(codec.containsAlphabetOrPad("OK ".getBytes()));
130132
assertFalse(codec.containsAlphabetOrPad("ok ".getBytes()));

0 commit comments

Comments
 (0)