Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.15 KB

README.md

File metadata and controls

36 lines (30 loc) · 1.15 KB

FooBarQixExtended

Introduction

This code Kata is an extended version of https://github.com/arolla/Craft_Your_Skills/tree/master/FooBarQix

DIY

  1. Choose your programming language
  2. Choose testing framework
  3. Read task of this step
  4. Start by creating Unit tests
  5. Watch as tests fail
  6. Create commit
  7. Write an implementation
  8. Happily watch as all tests pass or modify tests
  9. Refactor code (if needed)
  10. Retest
  11. Create commit
  12. Move to next step (start from 3rd point)
  13. (bonus) Get 100% (or close) Code Coverage
  14. Create pull request

Let's Begin

Hello, Welcome in our brand new startup where everything has to be done!

"Step 1": We just got some cash to implement a big part of our first feature. We need you to implement a service (we will let aside the Rest/web service side of it). It will take a number (positive integer) and provide:

  • "Foo" if this number is multiple of 3
  • "Bar" if this number is multiple of 5

If number have several multiples, they appear in natural order (Foo, Bar).

We will return the given number as a string if there is no transformation to do.

Once this step is complete, read and do step 2.