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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user