Two ways to run the program :
The 1st way :
- download 7ShiftsProject.jar from release page
- run the following command
java -cp 7ShiftsProject.jar Calculator
The 2nd way :
- clone the project from Github :
git clone https://github.com/Allianzcortex/7shifts.git
- import the project into any IDE/Editors or run the tests with Maven :
mvn test
Besides those two ways, you can also check the CI status in action page
Test Cases
skip 1000(maximum) | throw exception when meeting negative input | |
---|---|---|
addNumber | √ | √ |
null | "" | Input with new line | Input with extra spaces | Multiple Delimiters of arbitrary length | |
---|---|---|---|---|---|
add1 | √ | √ | √ | √ | |
add2 | √ | √ | √ | √ | √ |
add3 | √ | √ | √ | √ | √ |