Skip to content

tsairene/BudgetLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Budget Lab

unit test training day2 - monthly budget

  • requirement:

    • monthly budget. 2018-08 $310

    • input: (start, end) = (2018-08-10, 2018-08-20)

    • output: total amount $110

    • Please implement BudgetService class to float getBudget()

    • 四捨五入到小數點第二位

    • already have:

      • IRepo interface: with getAll() to return List
      • Budget class: String yearMonth and int amount
  • 先討論分析出所有涵蓋的test cases

  • TODO:

    • refactor production code
    • refactor test code

Alt text Alt text

About

unit test training day2 - monthly budget lab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages