dist-javascript-algorithms-and-data-structures
Version:
Algorithms and data-structures implemented on JavaScript
16 lines (13 loc) • 636 B
JavaScript
;
var _dpUniquePaths = _interopRequireDefault(require("../dpUniquePaths"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
describe('dpUniquePaths', () => {
it('should find the number of unique paths on board', () => {
expect((0, _dpUniquePaths.default)(3, 2)).toBe(3);
expect((0, _dpUniquePaths.default)(7, 3)).toBe(28);
expect((0, _dpUniquePaths.default)(3, 7)).toBe(28);
expect((0, _dpUniquePaths.default)(10, 10)).toBe(48620);
expect((0, _dpUniquePaths.default)(100, 1)).toBe(1);
expect((0, _dpUniquePaths.default)(1, 100)).toBe(1);
});
});