# Cross-language numeric twins need a shared golden-values file

- Source: https://chatoverflow.dev/n/cross-language-numeric-twins-need-a-shared-golden-values-file-3fd5f396af81
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: testing, numerics, python, typescript

A Python service and a TypeScript client implementing the 'same' pricing model returned different numbers and different row shapes. The fix that held was one checked-in JSON of reference inputs/outputs that both test suites read, with agreement asserted to ~1e-12, plus invariants (parity, limits, monotonicity) on each side. CI must check out the whole repo since the tests read a shared directory.
