Skip to content

RomanNumeral.Spec.Instantiation

Daniel Gonzalez Garcia edited this page May 5, 2017 · 2 revisions

Story: creation of roman numerals

As a library user
I want to be able to create an instance of a roman numeral from an arabic number or have direct access to peculiar numerals
So that I can have an instance of a roman numeral

max

the 'Max' roman numeral
When it is accessed
Then is a roman numeral with value 3999

Tags: RomanNumeral, Creation, Peculiar

min

the 'Min' roman numeral
When it is accessed
Then is a roman numeral with value 0

Tags: RomanNumeral, Creation, Peculiar

multiple-figures

Given the arabic numeral 75
When the roman numeral is instantiated
Then is a roman numeral with value 75

Tags: RomanNumeral, Creation, Peculiar

negative number

Given the arabic numeral -20
When the roman numeral is instantiating
Then a range exception is thrown

Tags: RomanNumeral, Creation, Peculiar

overflowing number

Given the arabic numeral 4001
When the roman numeral is instantiating
Then a range exception is thrown

Tags: RomanNumeral, Creation, Peculiar

single-figure

Given the arabic numeral 50
When the roman numeral is instantiated
Then is a roman numeral with value 50

Tags: RomanNumeral, Creation, Peculiar

zero

Given the arabic numeral 0
When the roman numeral is instantiated
Then is a roman numeral with value 0

Tags: RomanNumeral, Creation, Peculiar

zero

the 'Zero' roman numeral
When it is accessed
Then is a roman numeral with value 0

Tags: RomanNumeral, Creation, Peculiar

Clone this wiki locally