tracks/go/exercises/change/change_test.go in trackler-2.0.8.41 vs tracks/go/exercises/change/change_test.go in trackler-2.0.8.42
- old
+ new
@@ -17,10 +17,10 @@
for _, tc := range testCases {
actual, err := Change(tc.coins, tc.target)
if tc.valid {
if err != nil {
t.Fatalf("%s : Change(%v, %d): expected %v, got error %s",
- tc.description, tc.coins, tc.target, tc.expectedChange, err)
+ tc.description, tc.coins, tc.target, tc.expectedChange, err.Error())
} else {
if !reflect.DeepEqual(actual, tc.expectedChange) {
t.Fatalf("%s : Change(%v, %d): expected %v, actual %v",
tc.description, tc.coins, tc.target, tc.expectedChange, actual)
} else {