1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-10-14 04:54:03 -04:00
This commit is contained in:
Darien Raymond
2017-04-28 22:41:58 +02:00
parent ff83a9ca91
commit 4b725c61d1

View File

@@ -1,20 +0,0 @@
package serial_test
import (
"testing"
"v2ray.com/core/common"
"v2ray.com/core/common/buf"
. "v2ray.com/core/common/serial"
"v2ray.com/core/testing/assert"
)
func TestUint32(t *testing.T) {
assert := assert.On(t)
x := uint32(458634234)
s1 := Uint32ToBytes(x, []byte{})
s2 := buf.New()
common.Must(s2.AppendSupplier(WriteUint32(x)))
assert.Bytes(s1).Equals(s2.Bytes())
}