@davoodmehraban89 / Aram-1 / commits / 7e0a50d
Fork 0

test(control): prove opposing row errors cannot cancel in a globally balanced TB

davoodmehraban89 committed Oct 31, 2026 at 11:30 UTC 7e0a50df46a37eae16bcefa0c8bd1d374c431af3
1 file changed +2 -1
backend/tests/test_cross_statement_reconciliation.py
+2 -1
@@ -445,7 +445,8 @@ def test_trial_balance_row_rollforward_mismatch_cannot_net_off_globally():
445 source = trial()
446 rows = list(source.accounts)
447 rows[0] = replace(rows[0], closing="51")
448 - rows[3] = replace(rows[3], closing="-41")
448 + rows[4] = replace(rows[4], closing="59")
449 + assert sum(Decimal(row.closing) for row in rows) == 0
450 result = reconcile(trial_balance=replace(source, accounts=tuple(rows)))
451 assert not result.trial_balance_arithmetic_valid
452 assert "TRIAL_BALANCE_ARITHMETIC_INVALID" in result.findings