UNPKG

is-not-odd-even-ts

Version:

Extends the functionality of is-odd-even-ts with useful functions that users may find helpful.

21 lines (16 loc) 563 B
const INOETS = require("../build/index"); const assert = require("assert"); describe("Determine whether inputs are odd or even, not odd, or not even", () => { it("should return false", () => { assert.equal(INOETS.isEven(1), false); }); it("should return false", () => { assert.equal(INOETS.isOdd(2), false); }); it("should return true", () => { assert.equal(INOETS.isNotEven(1.2), true); }); it("should return false", () => { assert.equal(INOETS.isNotOdd(1), false); }); });