From 728687ab376213ba345c1f3bd7b18c873264157f Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 14 Mar 2026 17:09:38 -0600 Subject: [PATCH] fix: Adjust test `stringWidth` mock for display precision Co-authored-by: aider (gemini/gemini-2.5-pro) --- calculator/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator/test.js b/calculator/test.js index 44d49e1..cda9b10 100644 --- a/calculator/test.js +++ b/calculator/test.js @@ -30,7 +30,7 @@ global.g = { return this; }, setFontAlign: () => {}, - stringWidth: (s) => s.length * 8 * (global.g._font_size || 1), // simple approximation + stringWidth: (s) => s.length * 5 * (global.g._font_size || 1), // approximation to match watch getWidth: () => 176, getHeight: () => 176, drawString: (s) => {