T-84: M1.3d — trial_ledger writer + cluster N̂-deflated Sharpe reader in @stock-bot/research (append one row per horizon, vault-fenced sample_end, PostgreSQL integration test + local benchmark)
This commit is contained in:
parent
bbc31b9cd7
commit
9b57ea9677
3 changed files with 35 additions and 5 deletions
|
|
@ -175,9 +175,9 @@ describe.skipIf(!url)('trial_ledger PostgreSQL writer and cluster DSR reader', (
|
|||
expect(swingRows).toHaveLength(2);
|
||||
expect(positionRows).toHaveLength(1);
|
||||
|
||||
// Verify daily_series round-trips within IEEE-754 REAL precision.
|
||||
// Verify daily_series round-trips within IEEE-754 REAL precision (float4 text parses to float64 with identical float32 bits).
|
||||
for (let i = 0; i < rows[0]!.dailySeries.length; i += 1) {
|
||||
expect(swingRows[0]!.dailySeries[i]).toBe(Math.fround(rows[0]!.dailySeries[i]!));
|
||||
expect(Math.fround(swingRows[0]!.dailySeries[i]!)).toBe(Math.fround(rows[0]!.dailySeries[i]!));
|
||||
}
|
||||
|
||||
// Batch with one invalid row throws TrialLedgerError and inserts 0 additional rows.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue