Git Product home page Git Product logo

j_tdd_fizzbuzz_old's Introduction

FIZZ BUZZ solved using TDD

Solve Fizz buzz problem using tdd.

TDD (Test Driven Development)

https://en.wikipedia.org/wiki/Test-driven_development

Summary

  1. Add a test
  2. Run all tests. The new test should fail for expected reasons
  3. Write the simplest code that passes the new test
  4. All tests should now pass
  5. Refactor as needed, using tests after each refactor to ensure that functionality is preserved
  6. Repeat

The Problem

https://en.wikipedia.org/wiki/Fizz_buzz

Tasks

  1. Use TDD process create an application that solve the problem. NOTE: USE THE REFACTOR STEPS TO IMPROVE YOU APPLICATION DESIGN.
  2. If the input is a single position, print the corresponding value.
    value at position '<pos>' is: <value>
    
  3. If the inputs are 2 positions, print the corresponding values between those position (including them)
    values between position1 <pos1> and position2 <pos2> are: <value1>, <value2>, ... 
    
  4. If input is "all" , print all the values until that position
    values up to position '<pos>' are: <value1>, <value2>, ...
    

j_tdd_fizzbuzz_old's People

Contributors

ezequiel-g avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.