Skip to content

rozajay/cart-calculation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Challenge

This program takes two command-line arguments (one for cart and one for list of base prices) and outputs the total price for the cart.

Assumptions

As per brief

  • no need to test input files confirm with their schemas
  • no need to test if they conform with each other

Running the application

Upon unzipping the file run the below command to download all dependencies

yarn install

Run the below command to run the application against a file of your choice.

yarn start ${filename for cart} ${filename for base prices}

sampleyarnstart

Running the tests

yarn test

sampleyarntest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published