tracks/go/exercises/change/change_test.go in trackler-2.2.1.56 vs tracks/go/exercises/change/change_test.go in trackler-2.2.1.57

- old
+ new

@@ -3,27 +3,19 @@ import ( "reflect" "testing" ) -const targetTestVersion = 1 - -func TestTestVersion(t *testing.T) { - if testVersion != targetTestVersion { - t.Fatalf("Found testVersion = %v, want %v", testVersion, targetTestVersion) - } -} - func TestChange(t *testing.T) { 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.Error()) } else { if !reflect.DeepEqual(actual, tc.expectedChange) { - t.Fatalf("%s : Change(%v, %d): expected %v, actual %v", + t.Fatalf("%s : Change(%v, %d): expected %#v, actual %#v", tc.description, tc.coins, tc.target, tc.expectedChange, actual) } else { t.Logf("PASS: %s", tc.description) } }