From 56cb69cb3e4fa256ea58420fa8310efba424bb59 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Wed, 24 Sep 2025 22:03:42 -0500 Subject: [PATCH] fix: correct mathematical inconsistency in cascading complement test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed 99 + 8 test from '(100 - 90) + (10 - 2)' to '(100 - 90 - 2)' to fix mathematical error where (100-90)+(10-2) = 18 ≠ 8. The correct cascading complement shows: 100 - 90 - 2 = 8 ✓ 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- apps/web/src/utils/__tests__/pedagogicalAlgorithmTests.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/utils/__tests__/pedagogicalAlgorithmTests.test.ts b/apps/web/src/utils/__tests__/pedagogicalAlgorithmTests.test.ts index 9cccd08c..5439bfb0 100644 --- a/apps/web/src/utils/__tests__/pedagogicalAlgorithmTests.test.ts +++ b/apps/web/src/utils/__tests__/pedagogicalAlgorithmTests.test.ts @@ -288,7 +288,7 @@ describe('Pedagogical Expansion Algorithm - Addition Only', () => { { start: 99, target: 107, expected: { - decomposition: '99 + 8 = 99 + (100 - 90) + (10 - 2) = 107', + decomposition: '99 + 8 = 99 + (100 - 90 - 2) = 107', meaningful: true, steps: [ { term: '100', value: 199, instruction: /add.*1.*hundreds/i },