解析了5档价格,还未和实际校对

This commit is contained in:
钱纯净
2024-10-23 23:36:56 +08:00
parent ad6225ac22
commit f00bc3099e
6 changed files with 309 additions and 40 deletions

View File

@@ -37,3 +37,8 @@ func Test_securityQuote_Decode(t *testing.T) {
//SecurityQuote.Decode(f.Data)
}
func Test_getPrice(t *testing.T) {
t.Log(getPrice([]byte{0x7f, 0x3f, 0x40, 0x3f, 0x01})) //预期-63
t.Log(getPrice([]byte{0x2f, 0x3f, 0x40, 0x3f, 0x01})) //预期47
}