Skip to content

RomanFigure.Spec.Parse

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

Story: parse

As a library user
I want to be able to parse text
So that I can get a roman figure instance

figures are unique

Given the character X
the char X is parsed again
Then is the same figure

Tags: RomanFigure, Parse, char

figures are unique

Given the string X
the string X is parsed again
Then is the same figure

Tags: RomanFigure, Parse, char

parse a defined figure

Given the character I
When the char is parsed
Then the figure is I

Tags: RomanFigure, Parse, char

parse a defined figure

Given the string I
When the string is parsed
Then the figure is I

Tags: RomanFigure, Parse, char

parse a multiple character string

Given the string XI
When the string is parsed
Then throws format exception

Tags: RomanFigure, Parse, char

parse an undefined figure

Given the character W
When the char is parsed
Then throws argument exception

Tags: RomanFigure, Parse, char

parse an undefined figure

Given the string W
When the string is parsed
Then throws argument exception

Tags: RomanFigure, Parse, char

Clone this wiki locally