import { describe, expect, it } from "vitest"; import { areToolcraftFixtureValuesEqual } from "./performance-fixture-numeric"; describe("performance fixture numeric equality", () => { it("accepts the IEEE-754 drift produced by a reachable stepped slider value", () => { expect(areToolcraftFixtureValuesEqual(9_600, 9_599.999_999_999_998)).toBe( true, ); }); it("still rejects a materially different workload magnitude", () => { expect(areToolcraftFixtureValuesEqual(9_600, 9_580)).toBe(false); }); });