mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-14 06:46:11 +00:00
Use array instead of slice
This commit is contained in:
1 parent
ef790375ee
commit
6ecb18268e
4 files changed
+9
-11
No files matched your search
@@ -13,5 +13,5 @@ func TestUUIDToID(t *testing.T) {
|
||||
expectedBytes := []byte{0x24, 0x18, 0xd0, 0x87, 0x64, 0x8d, 0x49, 0x90, 0x86, 0xe8, 0x19, 0xdc, 0xa1, 0xd0, 0x06, 0xd3}
|
||||
|
||||
actualBytes, _ := NewID(uuid)
|
||||
assert.Bytes(actualBytes.Bytes).Named("UUID").Equals(expectedBytes)
|
||||
assert.Bytes(actualBytes.Bytes[:]).Named("UUID").Equals(expectedBytes)
|
||||
}
|
||||
Reference in new issue
Block a user