UNPKG

ts-ds-tool

Version:

Data structure and algorithm of TypeScript

7 lines (6 loc) 200 B
import { powerSet } from "../powerSet"; test("test powerSet func", () => { const arr = ["A", "B", "C", "D", "E", "F"]; const result = powerSet(arr); expect(result.length).toEqual(64); });