1
0
mirror of https://github.com/google/uuid.git synced 2024-11-24 08:32:23 +02:00

Merge pull request #15 from sjeandeaux/test/data-egals-data

[test] change data != data by data != uuid
This commit is contained in:
pborman 2017-07-24 08:24:35 -07:00 committed by GitHub
commit b7be3e3c4c

View File

@ -246,7 +246,7 @@ func TestCoding(t *testing.T) {
if err != nil {
t.Errorf("Parse returned unexpected error %v", err)
}
if data != data {
if data != uuid {
t.Errorf("%s: decoded to %s, expected %s", text, uuid, data)
}
}
@ -471,7 +471,6 @@ func parseBytesUnsafe(b []byte) (UUID, error) {
return Parse(*(*string)(unsafe.Pointer(&b)))
}
func BenchmarkParseBytesUnsafe(b *testing.B) {
for i := 0; i < b.N; i++ {
_, err := parseBytesUnsafe(asBytes)