import "mocha"; import { expect } from "chai"; import { is, floats, negpos, ints } from '../helpers'; describe('Thunk factory "is.float"', () => { it("recognizes non-integer numbers", () => { const thunk = is.float(); for (const value of negpos(floats)) expect(thunk(value)).to.be.true; for (const value of negpos(ints)) expect(thunk(value)).to.be.false; }); });