forked from profectus/Profectus
Fix some formula tests
This commit is contained in:
parent
f589184c9e
commit
3b4c098f9e
1 changed files with 6 additions and 4 deletions
|
@ -138,11 +138,13 @@ const nonInvertibleIntegralTwoParamFunctionNames = nonIntegrableTwoParamFunction
|
||||||
|
|
||||||
describe("Formula Equality Checking", () => {
|
describe("Formula Equality Checking", () => {
|
||||||
describe("Equality Checks", () => {
|
describe("Equality Checks", () => {
|
||||||
test("Equals", () => Formula.add(1, 1).equals(Formula.add(1, 1)));
|
test("Equals", () => expect(Formula.add(1, 1).equals(Formula.add(1, 1))).toBe(true));
|
||||||
test("Not Equals due to inputs", () => Formula.add(1, 1).equals(Formula.add(1, 0)));
|
test("Not Equals due to inputs", () =>
|
||||||
test("Not Equals due to functions", () => Formula.add(1, 1).equals(Formula.sub(1, 1)));
|
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", () =>
|
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", () => {
|
describe("Formula aliases", () => {
|
||||||
|
|
Loading…
Reference in a new issue