sternBrocot
should be a function.
testString: assert(typeof sternBrocot == 'function');
- text: sternBrocot(2)
should return a number.
testString: assert(typeof sternBrocot(2) == 'number');
- text: sternBrocot(2)
should return 3
.
testString: assert.equal(sternBrocot(2), 3);
- text: sternBrocot(3)
should return 5
.
testString: assert.equal(sternBrocot(3), 5);
- text: sternBrocot(5)
should return 11
.
testString: assert.equal(sternBrocot(5), 11);
- text: sternBrocot(7)
should return 19
.
testString: assert.equal(sternBrocot(7), 19);
- text: sternBrocot(10)
should return 39
.
testString: assert.equal(sternBrocot(10), 39);
```