A TDD Example

28-Jun-2019 2662
As part of my TDD learning process I faced this problem and found hard to solve it following the TDD rules.So I started this discussion --> https://dev.to/delbetu/solve-this-simple-problem-with-tdd-5e41The TDD process I tried to follow at that point was:Write a set of tests (input--->expected-output)Pick the simplest test case to solve. (RED)(Write a failing spec)Write the most naive code change that solves the current set of tests. (GREEN)Check if DRY is needed (Refactor)Go back to 2.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle