From 85b4e4eea3f6246ec9703a0b8c5bfba4db77c26f Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Wed, 30 Sep 2026 17:23:37 -0400 Subject: [PATCH] test: make Bengali syntax check byte exact --- tests/ci/bengali-language-surface.test.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/ci/bengali-language-surface.test.js b/tests/ci/bengali-language-surface.test.js index b98b5a32a..cb88d3153 100644 --- a/tests/ci/bengali-language-surface.test.js +++ b/tests/ci/bengali-language-surface.test.js @@ -125,10 +125,15 @@ function run() { } snippets.forEach(snippet => { + const encoded = Buffer.from(snippet.code, 'utf8').toString('base64'); const result = spawnSync( python.command, - [...python.prefix, '-c', "import sys; compile(sys.stdin.read(), '', 'exec')"], - { input: snippet.code, encoding: 'utf8' }, + [ + ...python.prefix, + '-c', + "import base64, sys; compile(base64.b64decode(sys.stdin.buffer.read()).decode('utf-8'), '', 'exec')", + ], + { input: encoded, encoding: 'utf8' }, ); assert.strictEqual( result.status,