Created
November 28, 2012 17:47
-
-
Save sandromancuso/4162826 to your computer and use it in GitHub Desktop.
Roman numeral convertion BDD spec
This file contains 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
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