test(engine): pin the standard Base64 alphabet in the encoder test

The lenient decoder accepts both alphabets, so the round trip alone would
not catch a switch to the URL-safe encoder.
This commit is contained in:
FredApps committed 2026-11-16 06:46:59 +01:00
1 parent 9e7fa3b571
commit 97423d80fd
1 file changed
+2
+2
View File
@@ -656,6 +656,8 @@ mod tests {
{
assert_eq!(base64_encode(input.as_bytes()), expected);
}
// The decoder accepts both alphabets, so pin the standard one explicitly.
assert_eq!(base64_encode(&[0xfb, 0xff]), "+/8=");
let all: Vec<u8> = (0..=255).cycle().take(513).collect();
for len in 0..=all.len() {
let encoded = base64_encode(&all[..len]);