@@ -69,7 +69,7 @@ func TestPile_PickAmountOfCardsFromBottomOfPile(t *testing.T) {
6969 pile .AddCardsToPile (draw , draw .Cards )
7070 backupOfCardsInPile := pile .RetrieveCardsInPile ()
7171
72- fmt .Printf ("PickAmountOfCardsFromBottomOfPile\n %s\n " , ( fmt . Sprintf ( "%s" , pile ) ))
72+ fmt .Printf ("PickAmountOfCardsFromBottomOfPile\n %s\n " , pile . String ( ))
7373
7474 cardsFromPile := pile .PickAmountOfCardsFromBottomOfPile (amountOfCards )
7575 if cardsFromPile .Remaining != amountOfCards {
@@ -130,7 +130,7 @@ func TestPile_PickAmountOfCardsFromTopOfPile(t *testing.T) {
130130 }
131131 amountOfCards := 4
132132
133- fmt .Printf ("%s\n " , ( fmt . Sprintf ( "%s" , deck ) ))
133+ fmt .Printf ("%s\n " , deck . String ( ))
134134 pile := NewPile ()
135135 draw := deck .Draw (6 )
136136 if ! draw .Success {
@@ -140,7 +140,7 @@ func TestPile_PickAmountOfCardsFromTopOfPile(t *testing.T) {
140140 pile .AddCardsToPile (draw , draw .Cards )
141141 backupOfCardsInPile := pile .RetrieveCardsInPile ()
142142
143- fmt .Printf ("PickAmountOfCardsFromTopOfPile\n %s\n " , ( fmt . Sprintf ( "%s" , pile ) ))
143+ fmt .Printf ("PickAmountOfCardsFromTopOfPile\n %s\n " , pile . String ( ))
144144
145145 cardsFromPile := pile .PickAmountOfCardsFromTopOfPile (amountOfCards )
146146 if cardsFromPile .Remaining != amountOfCards {
@@ -200,7 +200,7 @@ func TestPile_PickAllCardsFromPile(t *testing.T) {
200200 t .FailNow ()
201201 }
202202
203- fmt .Printf ("%s\n " , ( fmt . Sprintf ( "%s" , deck ) ))
203+ fmt .Printf ("%s\n " , deck . String ( ))
204204 pile := NewPile ()
205205 draw := deck .Draw (6 )
206206 if ! draw .Success {
@@ -210,7 +210,7 @@ func TestPile_PickAllCardsFromPile(t *testing.T) {
210210 pile .AddCardsToPile (draw , draw .Cards )
211211 backupOfCardsInPile := pile .RetrieveCardsInPile ()
212212
213- fmt .Printf ("PickAllCardsFromPile\n %s\n " , ( fmt . Sprintf ( "%s" , pile ) ))
213+ fmt .Printf ("PickAllCardsFromPile\n %s\n " , pile . String ( ))
214214
215215 cardsFromPile := pile .PickAllCardsFromPile ()
216216 amountOfCardsInPile := len (backupOfCardsInPile )
@@ -242,7 +242,7 @@ func TestPile_GetCardsFromPile(t *testing.T) {
242242 t .FailNow ()
243243 }
244244
245- fmt .Printf ("%s\n " , ( fmt . Sprintf ( "%s" , deck ) ))
245+ fmt .Printf ("%s\n " , deck . String ( ))
246246 pile := NewPile ()
247247 draw := deck .Draw (amountOfCardsToDraw )
248248 if ! draw .Success {
@@ -257,7 +257,7 @@ func TestPile_GetCardsFromPile(t *testing.T) {
257257 }
258258 pile .AddCardsToPile (draw , draw .Cards )
259259
260- fmt .Printf ("GetCardsFromPile\n %s\n " , ( fmt . Sprintf ( "%s" , pile ) ))
260+ fmt .Printf ("GetCardsFromPile\n %s\n " , pile . String ( ))
261261
262262 cardsFromPile := pile .GetCardsFromPile (cardsToRequestFromPile )
263263 if cardsFromPile .Remaining != 2 {
0 commit comments