Git Product home page Git Product logo

roman-numerals-kata's Introduction

Roman Numerals Kata

The object of this kata is to practice TDD with different frameworks. We do this by creating a function that converts from decimal numbers to roman numerals. The basic test cases are written in the respective directories.

Legend: Make sure this works

0    = nothing
1    = I
2    = II
3    = III
4    = IV
5    = V
6    = VI
7    = VII
8    = VIII
9    = IX
10   = X
20   = XX
40   = XL
49   = XLIX
50   = L
99   = XCIX
100  = C
500  = D
1000 = M
3994 = MMMCMXCIV

More information about roman numerals can be found here: http://www.novaroma.org/via_romana/numbers.html

Javascript, Busterjs

BusterJs is a nice framework, similar to Mocha. It supports both assert and spec style tests.

ClojureScript, Busterjs

Use Busterjs, but from a higher-level language than Javascript.

PHP, PHPUnit

PHPUnit is a test framework similar to JUnit. It only supports assert style tests.

Ruby, Minitest

MiniTest is a small Ruby test framework that is built into Ruby 1.9+. It supports both assert and spec style tests.

C, Homegrown :)

It is easy to write a simple test framework.

Lua, Busted

Busted is a BDD style framework that uses assertions.

Clojure, Midje

Midje supports top-down as well as bottom-up testing, encourages readable tests, supports a balance between abstraction and concreteness, and tries to be gracious in its treatment of the people who use it.

roman-numerals-kata's People

Contributors

andersjanmyr avatar hugojosefson avatar

Watchers

Albin Theander avatar James Cloos 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.