Skip to content

RomanNumeral.Spec.Boundaries

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

Story: roman numerals boundaries

As a library user
I want to be able to invoke methods taking the arabic number a argument
So that I can verify whether an arabic numeral can be converted into a roman numeral

assert a negative number

Given the arabic numeral -1
When the numeral is asserted
Then a range exception is thrown

Tags: RomanNumeral, Boundaries

assert a number in range

Given the arabic numeral 20
When the numeral is asserted
Then no exception is raised

Tags: RomanNumeral, Boundaries

assert an overflowing number

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

Tags: RomanNumeral, Boundaries

check a negative number

Given the arabic numeral -1
When the numeral is checked
Then the result is False

Tags: RomanNumeral, Boundaries

check a number in range

Given the arabic numeral 20
When the numeral is checked
Then the result is True

Tags: RomanNumeral, Boundaries

check an overflowing number

Given the arabic numeral 4001
When the numeral is checked
Then the result is False

Tags: RomanNumeral, Boundaries

Clone this wiki locally