From 97423d80fdc6945f8a542eca75caa99786250c75 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Mon, 16 Nov 2026 06:46:59 +0100 Subject: [PATCH] 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. --- crates/engine/src/cmd.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/engine/src/cmd.rs b/crates/engine/src/cmd.rs index 628571edd..f257d3282 100644 --- a/crates/engine/src/cmd.rs +++ b/crates/engine/src/cmd.rs @@ -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 = (0..=255).cycle().take(513).collect(); for len in 0..=all.len() { let encoded = base64_encode(&all[..len]);