From 9614ba69f60d2e2fc25ed4e23daa23de61a09249 Mon Sep 17 00:00:00 2001 From: hided62 Date: Mon, 27 Jul 2026 09:02:55 +0000 Subject: [PATCH] test mercenary recruitment boundaries --- ...rnCommandGeneralMatrix.integration.test.ts | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/tools/integration-tests/test/turnCommandGeneralMatrix.integration.test.ts b/tools/integration-tests/test/turnCommandGeneralMatrix.integration.test.ts index 50391a9..4fd6f06 100644 --- a/tools/integration-tests/test/turnCommandGeneralMatrix.integration.test.ts +++ b/tools/integration-tests/test/turnCommandGeneralMatrix.integration.test.ts @@ -1597,6 +1597,41 @@ const militaryPreparationBoundaryCases: MilitaryPreparationBoundaryCase[] = [ args: { crewType: 1100, amount: 100 }, completed: true, }, + { + name: 'mercenary recruitment rejects one gold below its doubled rounded cost', + action: 'che_모병', + args: { crewType: 1100, amount: 100 }, + actorPatch: { gold: 20 }, + completed: false, + }, + { + name: 'mercenary recruitment accepts its exact doubled rounded gold cost', + action: 'che_모병', + args: { crewType: 1100, amount: 100 }, + actorPatch: { gold: 21 }, + completed: true, + }, + { + name: 'mercenary recruitment rejects one rice below maintenance plus command cost', + action: 'che_모병', + args: { crewType: 1100, amount: 100 }, + actorPatch: { rice: 10 }, + completed: false, + }, + { + name: 'mercenary recruitment accepts exact maintenance plus command cost', + action: 'che_모병', + args: { crewType: 1100, amount: 100 }, + actorPatch: { rice: 11 }, + completed: true, + }, + { + name: 'mercenary recruitment clamps the same crew type at leadership capacity', + action: 'che_모병', + args: { crewType: 1100, amount: 99_999 }, + fixturePatches: { cities: { 3: { population: 200_000 } } }, + completed: true, + }, { name: 'equipment trade rejects an unknown item type', action: 'che_장비매매',