From 3b4c098f9e9acf330393f805058cf46f9b935e80 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 23 Mar 2023 19:59:45 -0500 Subject: [PATCH] Fix some formula tests --- tests/game/formulas.test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/game/formulas.test.ts b/tests/game/formulas.test.ts index a2b4012..967080d 100644 --- a/tests/game/formulas.test.ts +++ b/tests/game/formulas.test.ts @@ -138,11 +138,13 @@ const nonInvertibleIntegralTwoParamFunctionNames = nonIntegrableTwoParamFunction describe("Formula Equality Checking", () => { describe("Equality Checks", () => { - test("Equals", () => Formula.add(1, 1).equals(Formula.add(1, 1))); - test("Not Equals due to inputs", () => Formula.add(1, 1).equals(Formula.add(1, 0))); - test("Not Equals due to functions", () => Formula.add(1, 1).equals(Formula.sub(1, 1))); + test("Equals", () => expect(Formula.add(1, 1).equals(Formula.add(1, 1))).toBe(true)); + test("Not Equals due to inputs", () => + expect(Formula.add(1, 1).equals(Formula.add(1, 0))).toBe(false)); + test("Not Equals due to functions", () => + expect(Formula.add(1, 1).equals(Formula.sub(1, 1))).toBe(false)); test("Not Equals due to hasVariable", () => - Formula.constant(1).equals(Formula.variable(1))); + expect(Formula.constant(1).equals(Formula.variable(1))).toBe(false)); }); describe("Formula aliases", () => {