dist-javascript-algorithms-and-data-structures
Version:
Algorithms and data-structures implemented on JavaScript
22 lines (19 loc) • 409 B
JavaScript
import btPowerSet from '../btPowerSet';
describe('btPowerSet', () => {
it('should calculate power set of given set using backtracking approach', () => {
expect(btPowerSet([1])).toEqual([
[],
[],
]);
expect(btPowerSet([1, 2, 3])).toEqual([
[],
[],
[],
[],
[],
[],
[],
[],
]);
});
});