From aa7fb5f604b612465cadd3e4ddadd3edd9a8b338 Mon Sep 17 00:00:00 2001 From: Leon Linhart Date: Sun, 5 Feb 2023 12:17:46 +0100 Subject: [PATCH] fix: remove accidentally added Base64 test --- .../java/com/osmerion/onetrickpony/Base32Tests.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/test/java/com/osmerion/onetrickpony/Base32Tests.java b/src/test/java/com/osmerion/onetrickpony/Base32Tests.java index 90a9744..45037f5 100644 --- a/src/test/java/com/osmerion/onetrickpony/Base32Tests.java +++ b/src/test/java/com/osmerion/onetrickpony/Base32Tests.java @@ -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; @@ -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 })