Skip to content

Commit

Permalink
fix: remove accidentally added Base64 test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrMilchmann committed Feb 5, 2023
1 parent db3c130 commit aa7fb5f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/test/java/com/osmerion/onetrickpony/Base32Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Base64;
import java.util.Random;
import java.util.stream.IntStream;
import java.util.stream.Stream;
Expand Down Expand Up @@ -117,15 +116,6 @@ public void testDecoder(byte[] src, byte[] encoded) {
Base32.Decoder decoder = Base32.getDecoder();
assertArrayEquals(src, decoder.decode(encoded));
}
@ParameterizedTest
@ValueSource(ints = { 0, 1, 2, 3 })
public void testDecodeEndingB64(int trim) {
Base64.Decoder decoder = Base64.getDecoder();
byte[] data = "SHViZWxrcnV4".getBytes(StandardCharsets.UTF_8); // Hubelkrux

decoder.decode(Arrays.copyOf(data, data.length - trim));

}

@ParameterizedTest
@ValueSource(ints = { 0, 1, 2, 3, 4, 5, 6, 7, 8 })
Expand Down

0 comments on commit aa7fb5f

Please sign in to comment.