cutRectangle
should be a function.
testString: assert(typeof cutRectangle == 'function', 'cutRectangle
should be a function.');
- text: cutRectangle(2, 2)
should return a number.
testString: assert(typeof cutRectangle(2, 2) == 'number', 'cutRectangle(2, 2)
should return a number.');
- text: cutRectangle(2, 2)
should return 2
.
testString: assert.equal(cutRectangle(2, 2), 2, 'cutRectangle(2, 2)
should return 2
.');
- text: cutRectangle(4, 3)
should return 9
.
testString: assert.equal(cutRectangle(4, 3), 9, 'cutRectangle(4, 3)
should return 9
.');
- text: cutRectangle(4, 4)
should return 22
.
testString: assert.equal(cutRectangle(4, 4), 22, 'cutRectangle(4, 4)
should return 22
.');
- text: cutRectangle(8, 3)
should return 53
.
testString: assert.equal(cutRectangle(8, 3), 53, 'cutRectangle(8, 3)
should return 53
.');
- text: cutRectangle(7, 4)
should return 151
.
testString: assert.equal(cutRectangle(7, 4), 151, 'cutRectangle(7, 4)
should return 151
.');
```