-
Notifications
You must be signed in to change notification settings - Fork 1
RomanFigure.Spec.Castings
As a library user
I want to be able to explicitely cast a roman figure
So that I can extract information of individual figures
Given the roman figure N
When is casted to char
Then the character is N
Tags: RomanFigure, Castings
Given the roman figure X
When is casted to char
Then the character is X
Tags: RomanFigure, Castings
Given the roman figure 'null'
When is casted to char
Then throws argument exception
Tags: RomanFigure, Castings
Given the roman figure N
When is casted to number
Then the number is 0
Tags: RomanFigure, Castings
Given the roman figure X
When is casted to number
Then the number is 10
Tags: RomanFigure, Castings
Given the roman figure 'null'
When is casted to string
Then the string is 'null'
Tags: RomanFigure, Castings
Given the roman figure 'null'
When is casted to number
Then throws argument exception
Tags: RomanFigure, Castings
Given the roman figure N
When is casted to string
Then the string is N
Tags: RomanFigure, Castings
Given the roman figure X
When is casted to string
Then the string is X
Tags: RomanFigure, Castings