UNPKG

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) 342 B
import { arrayMin } from "./array-min.js"; import { Test_setDefaultFlags } from "../../test-util/test_set-default-flags.js"; describe("=> arrayMin", () => { beforeEach(() => { Test_setDefaultFlags(); }); it("| returns the min", () => { expect(arrayMin(new Float32Array([-1, 0, 1]))).toBe(-1); }); });