Skip to content

Commit a22ddc3

Browse files
committed
Simplify test
1 parent 7fde924 commit a22ddc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public void testCodec68() {
361361
@Test
362362
public void testCodeInteger1() {
363363
final String encodedInt1 = "li7dzDacuo67Jg7mtqEm2TRuOMU=";
364-
final BigInteger bigInt1 = new BigInteger("85739377120809420210425962799" + "0318636601332086981");
364+
final BigInteger bigInt1 = new BigInteger("857393771208094202104259627990318636601332086981");
365365

366366
assertEquals(encodedInt1, new String(Base64.encodeInteger(bigInt1)));
367367
assertEquals(bigInt1, Base64.decodeInteger(encodedInt1.getBytes(CHARSET_UTF8)));
@@ -370,7 +370,7 @@ public void testCodeInteger1() {
370370
@Test
371371
public void testCodeInteger2() {
372372
final String encodedInt2 = "9B5ypLY9pMOmtxCeTDHgwdNFeGs=";
373-
final BigInteger bigInt2 = new BigInteger("13936727572861167254666467268" + "91466679477132949611");
373+
final BigInteger bigInt2 = new BigInteger("1393672757286116725466646726891466679477132949611");
374374

375375
assertEquals(encodedInt2, new String(Base64.encodeInteger(bigInt2)));
376376
assertEquals(bigInt2, Base64.decodeInteger(encodedInt2.getBytes(CHARSET_UTF8)));

0 commit comments

Comments
 (0)