Skip to content

hejiangle/Simple-TDD-Experience

This branch is 3 commits ahead of main.

Repository files navigation

Simple-TDD-Experience

Some simple examples for exercising TDD

Simple 1: Ledger of Zhang San

Zhang San has a ledger to record his daily cost and income. Could you please help him with calculating the cost of the last nature week based on the transactions in the ledger?

  • Finishing the calculation logic at frist, then write some test case to test your logic.
  • Writting the test cases at first, then write the calculation logic to pass the tests.
  • Comparing the above approaches, will you have different feeling?

ps: If possible, please do above 2 different practices at different days to make sure your mind won't be influence by privous practice.

About

Some simple examples for exercising TDD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages