CONTRACTS: Generate test contracts on executing host by default. Add support for optional parameter to specify the server. (#2417)

This commit is contained in:
Paul Setzer
2025-12-16 19:23:59 -05:00
committed by GitHub
parent e7768824ba
commit 968c0c2a8c
7 changed files with 47 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ describe("Generator", () => {
assertNumberOfContracts(1, [Player.getHomeComputer()]);
});
test("generateDummyContract", () => {
generateDummyContract(CodingContractName.FindLargestPrimeFactor);
generateDummyContract(CodingContractName.FindLargestPrimeFactor, Player.getHomeComputer());
assertNumberOfContracts(1, GetAllServers());
});
// generateContract is flexible. All properties in IGenerateContractParams are optional. This test checks the usage in