From 4e9fb1bc9b93c31cb0d64e14b05ff2183d4e3afe Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 15 May 2023 07:40:00 -0500 Subject: [PATCH] Fixed tests --- tests/game/requirements.test.ts | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/tests/game/requirements.test.ts b/tests/game/requirements.test.ts index 2f42414..f6143ca 100644 --- a/tests/game/requirements.test.ts +++ b/tests/game/requirements.test.ts @@ -187,19 +187,9 @@ describe("Creating cost requirement", () => { unref( createCostRequirement(() => ({ resource, - cost: Formula.variable(resource).times(0), - maxBulkAmount: 10 - })).requirementMet - ) - ).compare_tolerance(10)); - - test("Direct sum respected", () => - expect( - unref( - createCostRequirement(() => ({ - resource, - cost: Formula.variable(resource).times(0), - maxBulkAmount: 10 + cost: Formula.variable(resource).times(0.0001), + maxBulkAmount: 10, + cumulativeCost: false })).requirementMet ) ).compare_tolerance(10));