assertThrows(() => base32Binary("CT3ZYAY=="));
});
- it("[[Call]] throws when provided with a length with a remainder of 1 when divided by 4", () => {
+ it("[[Call]] throws when provided with a length with a remainder of 1, 3 ∣ 6 when divided by 8", () => {
assertThrows(() => base32Binary("234BCDEAA"));
assertThrows(() => base32Binary("234BCDEAA======="));
+ assertThrows(() => base32Binary("UHI"));
+ assertThrows(() => base32Binary("UHIUJD"));
});
});
assertThrows(() => wrmgBase32Binary("ABC="));
});
+ it("[[Call]] throws when provided with a length with a remainder of 1, 3 ∣ 6 when divided by 8", () => {
+ assertThrows(() => base32Binary("TVW123400"));
+ assertThrows(() => base32Binary("TVW123400======="));
+ assertThrows(() => base32Binary("M78"));
+ assertThrows(() => base32Binary("M78M93"));
+ });
+
it("[[Call]] throws when provided with a length with a remainder of 1 when divided by 4", () => {
assertThrows(() => wrmgBase32Binary("234BCDEAA"));
assertThrows(() => wrmgBase32Binary("2-34-B--CD-EA-A-"));