whisper-money/tests/Unit
Víctor Falcón 013a237242 refactor(stats): extract statistical inference into a Services/Stats service
The command carried ~95 lines of private inference math (Wilson, Fisher,
Newcombe, pooled z, log-factorials), so it changed for two unrelated reasons
- presentation and statistical method - and the math was reachable only through
brittle toContain() assertions on rendered output. Move it to
App\Services\Stats\ProportionSignificance (matching the repo's 'compute in
Services/Stats, present in the command' convention) with a BinomialProportion
value object for the (successes, trials) clump, memoise the log-factorials, and
add unit tests that pin the exact interval and p-value numbers. Behaviour of the
command is unchanged.
2026-07-15 09:04:50 +02:00
..
Enums fix(accounts): show credit cards as positive and exclude them from net worth (#673) 2026-07-13 07:27:52 +00:00
Services fix(banking): stop duplicating EnableBanking transactions with positional entry_reference (#669) 2026-07-12 16:25:13 +00:00
.gitkeep Execute browser tests on CI (#10) 2025-12-03 16:26:30 +01:00
ProportionSignificanceTest.php refactor(stats): extract statistical inference into a Services/Stats service 2026-07-15 09:04:50 +02:00