Support printed Kull during market Ghola
Verify and publish checkpoint container / container (push) Successful in 11m25s

This commit is contained in:
Quintine committed 2026-10-29 08:37:50 +11:00
1 parent 79fc12c1c1
commit bcca08cac5
10 files changed
+232 -25

No files matched your search

+16 -2
View File
@@ -2,7 +2,7 @@ import assert from 'node:assert/strict';
import test from 'node:test';
import { createGame, newPlayer, type Game } from '../game/engine';
import { choamGholaEvent } from '../game/choam-market-ghola';
import { semutaMarketGholaSupported as supported } from '../game/semuta-market-ghola';
import { semutaMarketGholaProfile as profile, semutaMarketGholaSupported as supported } from '../game/semuta-market-ghola';
import type { FreshDiscardBatch } from '../game/semuta-drug';
type Ordinary = Extract<NonNullable<Game['pendingTreacheryDiscard']>['continuation'],
@@ -44,6 +44,8 @@ void test('a fresh actual market Ghola with and without native income is admitte
const {game,continuation,entries} = source(withIncome), before = structuredClone(game);
assert.equal(supported(game,continuation,entries),true);
assert.deepEqual(game,before);
game.kullPreview = true;
assert.equal(supported(game,continuation,entries),true);
}
});
@@ -60,7 +62,8 @@ void test('market, sequence, source, income and nested-control changes are rejec
const changes: Array<(s:ReturnType<typeof source>) => void> = [
s => { s.game.advanced = true; },
s => { s.game.techTokens = {} as NonNullable<Game['techTokens']>; },
s => { s.game.kullPreview = true; },
s => { s.game.sandtrout = true; },
s => { s.game.coalitionState = {} as NonNullable<Game['coalitionState']>; },
s => { s.game.nexusKullPreview = true; },
s => { s.game.semutaPreview = undefined; },
s => { s.game.pendingChoamMarketGhola!.turn++; },
@@ -89,3 +92,14 @@ void test('market, sequence, source, income and nested-control changes are rejec
assert.deepEqual(candidate.game,before);
}
});
void test('market Ghola income shares the same optional-module profile boundary', () => {
const {game} = source();
assert.equal(profile(game), true);
game.techTokens = {} as NonNullable<Game['techTokens']>;
assert.equal(profile(game), false);
game.techTokens = null; game.sandtrout = true;
assert.equal(profile(game), false);
game.sandtrout = false; game.coalitionState = {} as NonNullable<Game['coalitionState']>;
assert.equal(profile(game), false);
});