Skip to content

Commit a9f3aed

Browse files
committed
Some more lineSeparator tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@669749 13f79535-47bb-0310-9956-ffa450edef68
1 parent 38dfda0 commit a9f3aed

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,12 @@ public void testConstructors(){
697697
fail("Should have rejected attempt to use 'A' as a line separator");
698698
} catch (IllegalArgumentException ignored){
699699

700+
}
701+
try {
702+
base64 = new Base64(64,new byte[]{'='});
703+
fail("Should have rejected attempt to use '=' as a line separator");
704+
} catch (IllegalArgumentException ignored){
705+
700706
}
701707
base64 = new Base64(64,new byte[]{'$'}); // OK
702708
try {
@@ -705,6 +711,7 @@ public void testConstructors(){
705711
} catch (IllegalArgumentException ignored){
706712

707713
}
714+
base64 = new Base64(64,new byte[]{' ','$','\n','\r','\t'}); // OK
708715
}
709716
// -------------------------------------------------------- Private Methods
710717

0 commit comments

Comments
 (0)