sum
should be a function.
testString: assert(typeof sum == 'function');
- text: sum(1, 100)
should return a number.
testString: assert(typeof sum(1, 100) == 'number');
- text: sum(1, 100)
should return 1.6349839001848923
.
testString: assert.equal(sum(1, 100), 1.6349839001848923);
- text: sum(33, 46)
should return 0.009262256361481223
.
testString: assert.equal(sum(33, 46), 0.009262256361481223);
- text: sum(21, 213)
should return 0.044086990748706555
.
testString: assert.equal(sum(21, 213), 0.044086990748706555);
- text: sum(11, 111)
should return 0.08619778593108679
.
testString: assert.equal(sum(11, 111), 0.08619778593108679);
- text: sum(1, 10)
should return 1.5497677311665408
.
testString: assert.equal(sum(1, 10), 1.5497677311665408);
```