rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
15 lines (13 loc) • 341 B
text/typescript
import { arrayMax } from "./array-max.js";
import { Test_setDefaultFlags } from "../../test-util/test_set-default-flags.js";
describe("=> arrayMax", () =>
{
beforeEach(() =>
{
Test_setDefaultFlags();
});
it("| returns the max", () =>
{
expect(arrayMax(new Float32Array([-1, 0, 1]))).toBe(1);
});
});