mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 11:58:12 +03:00
pull isApproximately out for future use
This commit is contained in:
@@ -13,16 +13,7 @@ import {
|
||||
KaidenPercentile,
|
||||
} from "./game-specific-stats";
|
||||
import CreateLogCtx from "../../../../logger";
|
||||
|
||||
function isApproximately(number: number, target: number, message: string, lenience = 0.01) {
|
||||
let result = t.ok(Math.abs(number - target) < lenience, message);
|
||||
|
||||
if (!result) {
|
||||
throw new Error(`${number} was not close enough to ${target}`);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
import { isApproximately } from "../../../../test-utils/asserts";
|
||||
|
||||
t.test("#CalculateBPI", (t) => {
|
||||
t.test("AA BPI tests", (t) => {
|
||||
|
||||
Reference in New Issue
Block a user