mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
开发
This commit is contained in:
21
protocol/model_test.go
Normal file
21
protocol/model_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package protocol
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
/*
|
||||
0c00000000011a001a003e05050000000000000002000030303030303101363030303038
|
||||
0c02000000011a001a003e05050000000000000002000030303030303101363030303038
|
||||
*/
|
||||
func TestNewSecurityQuotes(t *testing.T) {
|
||||
f, err := NewSecurityQuotes(map[Exchange]string{
|
||||
ExchangeSH: "000001",
|
||||
ExchangeSZ: "600008",
|
||||
})
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
t.Log(f.Bytes().HEX())
|
||||
}
|
||||
Reference in New Issue
Block a user