Allow group actions after settled Truthtrance
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-29 00:12:09 +11:00
1 parent 9cc659602c
commit 420943b890
8 files changed
+135 -5

No files matched your search

+13
View File
@@ -104,6 +104,19 @@ void test('each donor share of a leading group bid remains locked until outbid',
assert.equal(spice(game), 32);
});
void test('fulfilled and released bid promises leave group bid funding usable', () => {
for (const history of ['settled', 'prior-turn'] as const) {
const initial = fixture();
initial.phaseBidPromises = [{event:`bid-${history}`, player:'d', asker:'a',
turn:history === 'prior-turn' ? initial.turn - 1 : initial.turn,
minimum:1, answer:true, ...(history === 'settled' ? {fulfilled:true} : {released:true})}];
const game = act(pledge(initial), 'a', groupBid);
assert.equal(game.auction?.bidder, 'a');
assert.deepEqual(game.auction?.coalitionContributions, groupBid.coalitionContributions);
assert.deepEqual(game.phaseBidPromises, initial.phaseBidPromises);
}
});
void test('only the bidder sees the combined group payment, without raw donor allocations', () => {
const game = act(pledge(fixture()), 'a', groupBid);
const own = viewGame(game, 'a').auction; assert.ok(own);