Skip to content

RomanNumeral.Spec.Comparisons

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

Story: roman numeral comparison

As a library user
I want to use comparison methods and operators
So that I can tell the larger of two roman numerals

NULL is compared to a numeral

Given the roman numeral 'null'
'<' is evaluated against N
Then is True

Tags: RomanNumeral, Comparisons, less than

NULL is compared to a numeral

Given the roman numeral 'null'
'<=' is evaluated against N
Then is True

Tags: RomanNumeral, Comparisons, less than

NULL is compared to a numeral

Given the roman numeral 'null'
'>=' is evaluated against N
Then is False

Tags: RomanNumeral, Comparisons, less than

NULL is compared to a numeral

Given the roman numeral 'null'
'>' is evaluated against N
Then is False

Tags: RomanNumeral, Comparisons, less than

one figure is compared to NULL

Given the roman numeral N
When compared to 'null'
Then is greater than zero

Tags: RomanNumeral, Comparisons, less than

one numeral is compared to NULL

Given the roman numeral N
'<' is evaluated against 'null'
Then is False

Tags: RomanNumeral, Comparisons, less than

one numeral is compared to NULL

Given the roman numeral N
'<=' is evaluated against 'null'
Then is False

Tags: RomanNumeral, Comparisons, less than

one numeral is compared to NULL

Given the roman numeral N
'>' is evaluated against 'null'
Then is True

Tags: RomanNumeral, Comparisons, less than

one numeral is compared to NULL

Given the roman numeral N
'>' is evaluated against 'null'
Then is True

Tags: RomanNumeral, Comparisons, less than

one numeral is equal to another

Given the roman numeral X
'<' is evaluated against X
Then is False

Tags: RomanNumeral, Comparisons, less than

one numeral is equal to another

Given the roman numeral X
'<=' is evaluated against X
Then is True

Tags: RomanNumeral, Comparisons, less than

one numeral is equal to another

Given the roman numeral XI
'>=' is evaluated against XI
Then is True

Tags: RomanNumeral, Comparisons, less than

one numeral is equal to another

Given the roman numeral X
When compared to X
Then is zero

Tags: RomanNumeral, Comparisons, less than

one numeral is equal to another

Given the roman numeral X
'>' is evaluated against X
Then is False

Tags: RomanNumeral, Comparisons, less than

one numeral is greater than another

Given the roman numeral V
'<' is evaluated against I
Then is False

Tags: RomanNumeral, Comparisons, less than

one numeral is greater than another

Given the roman numeral V
'<=' is evaluated against I
Then is False

Tags: RomanNumeral, Comparisons, less than

one numeral is greater than another

Given the roman numeral V
'>=' is evaluated against I
Then is True

Tags: RomanNumeral, Comparisons, less than

one numeral is greater than another

Given the roman numeral V
When compared to I
Then is greater than zero

Tags: RomanNumeral, Comparisons, less than

one numeral is greater than another

Given the roman numeral V
'>' is evaluated against I
Then is True

Tags: RomanNumeral, Comparisons, less than

one numeral is less than another

Given the roman numeral I
'<' is evaluated against X
Then is True

Tags: RomanNumeral, Comparisons, less than

one numeral is less than another

Given the roman numeral I
'<=' is evaluated against X
Then is True

Tags: RomanNumeral, Comparisons, less than

one numeral is less than another

Given the roman numeral I
'>=' is evaluated against XI
Then is False

Tags: RomanNumeral, Comparisons, less than

one numeral is less than another

Given the roman numeral I
When compared to X
Then is less than zero

Tags: RomanNumeral, Comparisons, less than

one numeral is less than another

Given the roman numeral N
'>' is evaluated against I
Then is False

Tags: RomanNumeral, Comparisons, less than

Clone this wiki locally