Skip to content

Commit

Permalink
Commented out the reference implementation in test
Browse files Browse the repository at this point in the history
  • Loading branch information
suztomo committed May 15, 2024
1 parent 67b40c8 commit 5cee049
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ public void test_decodeBase64_newline_character_invalid_length() {

// This is a reference implementation by Apache Commons Codec. It discards the new line
// characters.
assertEquals(
"abcdef",
new String(
org.apache.commons.codec.binary.Base64.decodeBase64(encodedString),
StandardCharsets.UTF_8));
// assertEquals(
// "abcdef",
// new String(
// org.apache.commons.codec.binary.Base64.decodeBase64(encodedString),
// StandardCharsets.UTF_8));

// This is our implementation
assertEquals("abcdef", new String(Base64.decodeBase64(encodedString), StandardCharsets.UTF_8));
}
Expand All @@ -95,11 +96,12 @@ public void test_decodeBase64_newline_character_between() {

// This is a reference implementation by Apache Commons Codec. It discards the new line
// characters.
assertEquals(
"ab",
new String(
org.apache.commons.codec.binary.Base64.decodeBase64(encodedString),
StandardCharsets.UTF_8));
// assertEquals(
// "ab",
// new String(
// org.apache.commons.codec.binary.Base64.decodeBase64(encodedString),
// StandardCharsets.UTF_8));

// This is our implementation
assertEquals("ab", new String(Base64.decodeBase64(encodedString), StandardCharsets.UTF_8));
}
Expand Down

0 comments on commit 5cee049

Please sign in to comment.