UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

11 lines (9 loc) 265 B
import { reverse } from "../reverse.ts"; describe("reverse()", () => { it("should reverse strings", () => { expect(reverse("foobar")).toEqual("raboof"); }); it("should reverse arrays", () => { expect(reverse([1, 2, 3])).toEqual([3, 2, 1]); }); });