AritGeo Test Suite
A test suite written with mocha and chai for assertions using the chai expect style
assertions.
10 Test cases and all Passing
- Detects an arithmetic progression
- Detects a geometric progression
- Returns zero for an empty array
- Returns -1 for a random string
- Returns -1 for an array of string and numbers
- Returns -1 for an array of both positive and negative numbers
- Returns -1 for an array of strings
- Returns -1 for an incomplete arithmetic progression
- Returns -1 for an incomplete geometric progression
- Returns arithmetic progression for an array of zeros
run npm install
this will install all dependencies
and then npm test
this will start the test runner