Sfoglia il codice sorgente

Fixed Errorf formatting in UUID test

Dan Forest 11 anni fa
parent
commit
f8e26b9c18
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      uuid_test.go

+ 1 - 1
uuid_test.go

@@ -66,7 +66,7 @@ func TestPredefinedUUID(t *testing.T) {
 		}
 		expectedJson := `"` + testsUUID[i].input + `"`
 		if string(json) != expectedJson {
-			t.Errorf("MarshalJSON #%d: expected %d got %d", i, expectedJson, string(json))
+			t.Errorf("MarshalJSON #%d: expected %v got %v", i, expectedJson, string(json))
 		}
 	}
 }