package anki import "testing" func TestParseUUID(t *testing.T) { testCases := []string{ ServiceUUID, ChrReadUUID, ChrWriteUUID, } for _, tc := range testCases { t.Run(tc, func(t *testing.T) { uuid, err := ParseUUID(tc) if err != nil { t.Error(err) } if uuid.String() != tc { t.Errorf("got %v, want %v", uuid, tc) } }) } }