Skip to content

RomanFigure.Spec.Comparisons

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

Story: compare roman figures

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

NULL is compared to a figure

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

Tags: RomanFigure, Comparisons

NULL is compared to a figure

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

Tags: RomanFigure, Comparisons

NULL is compared to a figure

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

Tags: RomanFigure, Comparisons

NULL is compared to a figure

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

Tags: RomanFigure, Comparisons

one figure is compared to NULL

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

Tags: RomanFigure, Comparisons

one figure is compared to NULL

Given the roman figure N
When '>=' is evaluated against 'null'
Then is True

Tags: RomanFigure, Comparisons

one figure is compared to NULL

Given the roman figure X
When compared to 'null'
Then the result is greater than zero

Tags: RomanFigure, Comparisons

one figure is compared to NULL

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

Tags: RomanFigure, Comparisons

one figure is compared to NULL

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

Tags: RomanFigure, Comparisons

one figure is equal to another

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

Tags: RomanFigure, Comparisons

one figure is equal to another

Given the roman figure X
When '>=' is evaluated against X
Then is True

Tags: RomanFigure, Comparisons

one figure is equal to another

Given the roman figure X
When compared to X
Then the result is zero

Tags: RomanFigure, Comparisons

one figure is equal to another

Given the roman figure X
When '<' is evaluated against X
Then is False

Tags: RomanFigure, Comparisons

one figure is equal to another

Given the roman figure X
When '>' is evaluated against X
Then is False

Tags: RomanFigure, Comparisons

one figure is greater than another

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

Tags: RomanFigure, Comparisons

one figure is greater than another

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

Tags: RomanFigure, Comparisons

one figure is greater than another

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

Tags: RomanFigure, Comparisons

one figure is greater than another

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

Tags: RomanFigure, Comparisons

one figure is greater than another

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

Tags: RomanFigure, Comparisons

one figure is greater than another

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

Tags: RomanFigure, Comparisons

one figure is less than another

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

Tags: RomanFigure, Comparisons

one figure is less than another

Given the roman figure I
When '>=' is evaluated against X
Then is False

Tags: RomanFigure, Comparisons

one figure is less than another

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

Tags: RomanFigure, Comparisons

one figure is less than another

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

Tags: RomanFigure, Comparisons

one figure is less than another

Given the roman figure I
When '>' is evaluated against X
Then is False

Tags: RomanFigure, Comparisons

Clone this wiki locally