mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-28 02:51:46 +00:00
Fix some requirements tests
This commit is contained in:
parent
bc941df22b
commit
a18ca76e3d
1 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ describe("Checking maximum levels of requirements met", () => {
|
|||
cost: Formula.variable(0)
|
||||
}))
|
||||
];
|
||||
expect(maxRequirementsMet(requirements)).toBe(0);
|
||||
expect(maxRequirementsMet(requirements)).compare_tolerance(0);
|
||||
});
|
||||
|
||||
test("Returns correct number of requirements met", () => {
|
||||
|
@ -162,7 +162,7 @@ describe("Checking maximum levels of requirements met", () => {
|
|||
cost: Formula.variable(0)
|
||||
}))
|
||||
];
|
||||
expect(maxRequirementsMet(requirements)).toBe(10);
|
||||
expect(maxRequirementsMet(requirements)).compare_tolerance(10);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue