Skip to content

rishabjn/string-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String Calculator

Prerequests

  • Install Latest stable Node as per your system configuration.

Steps to setup the repository

1. Clone the repository:

git clone https://github.com/rishabjn/string-calculator.git

2. Open the project in your IDE(Eg. VScode) and run the below command.

npm install 

3. To run the project

npm run build 

4. To test the project

npm run test 

Test Driven Development report and analysis.

Build

  • You can run the script by executing npm run build and providing your desired inputString in stringCalculator
  • Below is a sample output from the terminal.

String Calculator

Test Driven Development [Jest framework quality assurance]

  • We use the Jest framework to test the script. Learn more about it here
  • Run npm run test to execute all test cases for the string calculator.
  • With Test-Driven Development (TDD), the logic is fully covered by test cases in stringCalculator.test
  • Below is a screenshot showing the test results.

String Calculator

About

TDD based String Calculator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published