Last active
December 17, 2015 05:59
-
-
Save echojc/5562397 to your computer and use it in GitHub Desktop.
How Corey Haines structed his tests for the Roman Numerals kata according to http://youtu.be/vX-Yym7166Y
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe "Converting arabic numbers to roman numerals" do | |
| { | |
| 1 => "I", | |
| 2 => "II", | |
| 5 => "V" | |
| #... | |
| }.each_pair do |arabic, roman| | |
| it "converts #{arabic} to #{roman}" do | |
| expect(convert(arabic)).to eq(roman) | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment