From d9696cf1ecc7c795fe9604c3d94517c993769e38 Mon Sep 17 00:00:00 2001 From: EauDoon <47585778+EauDoon@users.noreply.github.com> Date: Sun, 30 Aug 2026 12:37:03 +0800 Subject: [PATCH] fix: normalize README newlines in contract test --- test/stack.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/stack.test.mjs b/test/stack.test.mjs index 818dab8..1b08d33 100644 --- a/test/stack.test.mjs +++ b/test/stack.test.mjs @@ -460,7 +460,7 @@ test("decide and act reject mistyped remaining payload fields", () => { }); test("README pass-path sample matches printHuman field order", async () => { - const readme = readFileSync(join(ROOT, "README.md"), "utf8"); + const readme = readFileSync(join(ROOT, "README.md"), "utf8").replaceAll("\r\n", "\n"); const match = readme.match(/Expected human output \(pass path, no fault\):\n\n```text\n([\s\S]*?)```/); assert.ok(match, "README is missing the pass-path human output sample"); const outputRoot = tempRoot();