A simple implementation of RangeList using JavaScript list.
The class RangeList
can be found in the file RangeList.js
. Tests for RangeList
can be found in RangeList.test.js
. RangeList.test.js
provides additional tests besides the original tests.
To run the unit tests, you first need to install jest using this command:
npm install
After installing jest, enter this command:
npm test
You could add additional test cases to the file RangeList.test.js
.