diff options
| author | Kostya <mail@sartin.in> | 2026-09-10 11:55:50 +0300 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-09-10 11:55:50 +0300 |
| commit | 1a8b75f96f0c6855581be3a38069f09eca37d1f5 (patch) | |
| tree | de174d70987afa21fd0588c551c111e028ff020f /modules/ui-console/src/main/java | |
| parent | f23c20c1c66b39fb1f49307e08e8593fa708e026 (diff) | |
| download | guess-market-2.0.tar.gz guess-market-2.0.tar.xz guess-market-2.0.zip | |
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 'modules/ui-console/src/main/java')
0 files changed, 0 insertions, 0 deletions