changed if check to explicitly capture Base32.
@@ -80,13 +80,13 @@ private void checkEncoding(byte[] encoded)
if (c == paddingChar())
{
// should only be padding at end of string
- if (this instanceof Base64Test)
+ if (this instanceof Base32Test)
{
- assertTrue(i > encString.length() - 3);
+ assertTrue(i > encString.length() - 7);
}
else
{
- assertTrue(i > encString.length() - 7);
+ assertTrue(i > encString.length() - 3);
}
continue;
}
