Skip to content
/ MongoDB_Assessment Public template

Edited files of MongoDB's Summer intern take home assessment, "ShoppingCart"

Notifications You must be signed in to change notification settings

cveticm/MongoDB_Assessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB_Assessmnet

Edited files of MongoDB's Summer intern take home assessment, "ShoppingCart"

Time spent: approx 2hrs 30m

Language: Python <3.11.0>

Work done:

  • Improved receipt printing:

    • Inclusion of spacing for readability
    • Total calculated and printed
  • Creating means to change layout of receipt printing quickly without need to change class IShoppingCart. Code is easily duplicatable to create additional layouts.

  • Improved testing:

    • Tests layout specified by user
    • Added evaluation of total price to all tests.
  • Additional testing added:

    • Tests if items are printed on the receipt in the order they have been scanned
    • Tests if value of item is correctly updated if an item type is scanned multiple times with other item types scanned between. Also tests if receipt prints in order of first iteration of an item type scanned.

About

Edited files of MongoDB's Summer intern take home assessment, "ShoppingCart"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages