Skip to content

Instantly share code, notes, and snippets.

@sandromancuso
Created November 28, 2012 17:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandromancuso/4162826 to your computer and use it in GitHub Desktop.
Save sandromancuso/4162826 to your computer and use it in GitHub Desktop.
Roman numeral convertion BDD spec
Feature: Convert decimal numbers to roman numerals
Scenario Outline: Generate a roman numeral
Given a decimal number equal to <decimal_number>
When the roman numeral is generated
Then roman numeral should be <roman_numeral>
Examples:
| decimal_number | roman_numeral |
| 1 | I |
| 2 | II |
| 3 | III |
| 4 | IV |
| 5 | V |
| 6 | VI |
| 9 | IX |
| 10 | X |
| 11 | XI |
| 15 | XV |
| 16 | XVI |
| 19 | XIX |
#| 21 | XXI |
#| 40 | XL |
#| 50 | L |
#| 90 | XC |
#| 100 | C |
#| 206 | CCVI |
#| 400 | CD |
#| 500 | D |
#| 900 | CM |
#| 1000 | M |
#| 1944 | MCMXLIV |
#| 2006 | MMVI |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment