+ assertEquals(
+ new Uint8Array(base64Binary("FPucA9l+")),
+ new Uint8Array([0x14, 0xFB, 0x9C, 0x03, 0xD9, 0x7E]),
+ "FPucA9l+",
+ );
+ assertEquals(
+ new Uint8Array(base64Binary("FPucA9k=")),
+ new Uint8Array([0x14, 0xFB, 0x9C, 0x03, 0xD9]),
+ "FPucA9k=",
+ );
+ assertEquals(
+ new Uint8Array(base64Binary("FPucAw==")),
+ new Uint8Array([0x14, 0xFB, 0x9C, 0x03]),
+ "FPucAw==",
+ );
+ assertEquals(
+ new Uint8Array(base64Binary("KA==")),
+ new Uint8Array([0x28]),
+ "KA==",
+ );
+ assertEquals(
+ new Uint8Array(base64Binary("1g==")),
+ new Uint8Array([0xD6]),
+ "1g==",
+ );
+ assertEquals(
+ new Uint16Array(base64Binary("1vg")),
+ new Uint16Array([0xF8D6]),
+ "1vg",
+ );
+ assertEquals(
+ new Uint8Array(base64Binary("1vgA")),
+ new Uint8Array([0xD6, 0xF8, 0x00]),
+ "1vgA",
+ );
+ assertEquals(
+ new Uint8Array(base64Binary("1vgQ")),
+ new Uint8Array([0xD6, 0xF8, 0x10]),
+ "1vgQ",
+ );
+ assertEquals(
+ new Uint32Array(base64Binary("1vgRDA==")),
+ new Uint32Array([0x0C11F8D6]),
+ "1vgRDA==",
+ );
+ assertEquals(
+ new Uint8Array(base64Binary("1vgRDIA=")),
+ new Uint8Array([0xD6, 0xF8, 0x11, 0x0C, 0x80]),
+ "1vgRDIA=",
+ );
+ assertEquals(
+ new Uint16Array(base64Binary("1vgRDIUw")),
+ new Uint16Array([0xF8D6, 0x0C11, 0x3085]),
+ "1vgRDIUw",
+ );