aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pico
diff options
context:
space:
mode:
authorKostya <mail@sartin.in>2026-09-10 11:55:50 +0300
committerKostya <mail@sartin.in>2026-09-10 11:55:50 +0300
commit1a8b75f96f0c6855581be3a38069f09eca37d1f5 (patch)
treede174d70987afa21fd0588c551c111e028ff020f /lib/pico
parentf23c20c1c66b39fb1f49307e08e8593fa708e026 (diff)
downloadguess-market-master.tar.gz
guess-market-master.tar.xz
guess-market-master.zip
tests: cover the ex-2 loader, order book trading and desktop stateHEAD2.0master
Add tests for the behaviour introduced in the last few commits, so later changes to matching, settlement or the UI state can't quietly break it. On the service side, Ex2LoaderTest loads the ex-2 fixtures and checks that every invalid file is rejected for its own reason, including events with no market maker or two of them, and v1 files. The order book tests cover buys and sells that match or rest in the ladder, self-trade prevention, cash and shares reserved by resting orders, price bounds, risk rejections, and resolution cancelling resting orders and paying the holders. A simulation checks that LMSR settlement conserves money. LedgerMapperTest used to pin the unmapped seq and at fields to their defaults. Now that the mapper fills them from the entry id and time, assert the real values and add a case for a null time. On the desktop side, AppStateTest drives the real ServiceEngine through loading, event creation, LMSR and order book trading, and checks that the observable state updates. Smaller tests check chart timestamps, money and probability formatting, and that every animation settles on its final frame, which is what the UI shows when animations are off.
Diffstat (limited to 'lib/pico')
0 files changed, 0 insertions, 0 deletions