1
0
mirror of https://github.com/google/uuid.git synced 2025-07-13 01:30:11 +02:00

Attempt to scan []byte uuids larger than 16 bytes. Fixes #12

This commit is contained in:
Justin Overfelt
2015-11-18 19:54:10 -05:00
parent cccd189d45
commit d4a682d48d
2 changed files with 18 additions and 5 deletions

View File

@ -22,6 +22,11 @@ func TestScan(t *testing.T) {
t.Fatal(err)
}
err = (&uuid).Scan([]byte(stringTest))
if err != nil {
t.Fatal(err)
}
err = (&uuid).Scan(byteTest)
if err != nil {
t.Fatal(err)