Precondition:
List<Card> cards = Arrays.asList(c[5], c[5], c[5], c[5], c[3], c[4]);
Hand h = Hand.cards2hand(cards);
When the Hand object h is instantiated as above, the toString() method of h is expected to return String("QUAD 5 Kickers: SOLO 3 SOLO 4 1\n"). However, the method returns String("QUAD 5 Kickers: SOLO 3 1\n"), which misses the partial kicker information.
The bug can be reproduced in the case that kicker of a Hand object exists and the length of the kicker is larger than 1.
Precondition: List<Card> cards = Arrays.asList(c[5], c[5], c[5], c[5], c[3], c[4]); Hand h = Hand.cards2hand(cards); When the Hand object h is instantiated as above, the toString() method of h is expected to return String("QUAD 5 Kickers: SOLO 3 SOLO 4 1\n"). However, the method returns String("QUAD 5 Kickers: SOLO 3 1\n"), which misses the partial kicker information. The bug can be reproduced in the case that kicker of a Hand object exists and the length of the kicker is larger than 1.