This change fixes #35 by adding the possibility to create Suits from the characters "cdhsCDHS" by adding a call to suit_code when necessary. This mirrors the functionality of Rank, where for example it is also possible to create the Rank RANK_TWO by passing the character '2' to the constructor. An appropriate test is included.
This change fixes #35 by adding the possibility to create Suits from the characters "cdhsCDHS" by adding a call to suit_code when necessary. This mirrors the functionality of Rank, where for example it is also possible to create the Rank RANK_TWO by passing the character '2' to the constructor. An appropriate test is included.