修改测试用例的错误

This commit is contained in:
钱纯净
2024-11-04 23:54:28 +08:00
parent 8a3ebcec65
commit 39057e5305
4 changed files with 22 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ import (
func Test_stockKline_Frame(t *testing.T) {
//预期0c02000000001c001c002d050000303030303031 0900 0100 0000 0a00 00000000000000000000
// 0c00000000011c001c002d050000313030303030 0900 0000 0000 0a00 00000000000000000000
f, _ := MStockKline.Frame(TypeKlineDay, &StockKlineReq{
f, _ := MKline.Frame(TypeKlineDay, KlineReq{
Exchange: ExchangeSH,
Code: "000001",
Start: 0,
@@ -24,7 +24,7 @@ func Test_stockKline_Decode(t *testing.T) {
t.Error(err)
return
}
resp, err := MStockKline.Decode(bs, 9)
resp, err := MKline.Decode(bs, 9)
if err != nil {
t.Error(err)
return