1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-01 23:15:21 -05:00

update tests

This commit is contained in:
Darien Raymond
2018-11-15 11:17:20 +01:00
parent ac4f868078
commit 24288a74a2
11 changed files with 48 additions and 50 deletions

View File

@@ -3,6 +3,8 @@ package uuid_test
import (
"testing"
"github.com/google/go-cmp/cmp"
"v2ray.com/core/common"
"v2ray.com/core/common/compare"
. "v2ray.com/core/common/uuid"
@@ -15,8 +17,8 @@ func TestParseBytes(t *testing.T) {
uuid, err := ParseBytes(bytes)
common.Must(err)
if err := compare.StringEqualWithDetail(uuid.String(), str); err != nil {
t.Fatal(err)
if diff := cmp.Diff(uuid.String(), str); diff != "" {
t.Error(diff)
}
_, err = ParseBytes([]byte{1, 3, 2, 4})