mirror of
https://github.com/sairson/Yasso.git
synced 2026-02-07 12:35:08 +08:00
20 lines
331 B
Go
20 lines
331 B
Go
package core_test
|
|
|
|
import (
|
|
"bytes"
|
|
"encoding/hex"
|
|
"testing"
|
|
|
|
"Yasso/pkg/grdp/core"
|
|
)
|
|
|
|
func TestWriteUInt16LE(t *testing.T) {
|
|
buff := &bytes.Buffer{}
|
|
core.WriteUInt32LE(66538, buff)
|
|
result := hex.EncodeToString(buff.Bytes())
|
|
expected := "ea030100"
|
|
if result != expected {
|
|
t.Error(result, "not equals to", expected)
|
|
}
|
|
}
|