Write a function to convert Arabic numbers to Roman numerals as best as you can.Witre the program following the TDD practices.
move to folder roman-numerals
npm install
In the project directory, you can run:
npm run test
see test passed
This project is configurated with Continuous Integration with github to optimize test automation. see .github/workflows folder
- You are not allowed to write any more of a unit test that is sufficient to fail, and compilation failures are failures
- You are not allowed to write any production code unless it is to make a failing unit test pass
- You are not allowed to write any more production code that is sufficient to pass the one failing unit test
- The Rule of Three defers duplication minimization until there is enough evidence. Code that does not contain duplication is often referred to as abiding to the DRY (Do not Repeat Yourself) principle.
- Fake it
- Obvious implementation
- Triangulation
- The idea is that we stay in one behavior until we are sure that behavior is completed. โ
- Tests should have names that describe a business feature or behavior