1
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
"unicode/utf8"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPrintMsg(t *testing.T) {
|
func TestPrintMsg(t *testing.T) {
|
||||||
@@ -15,7 +16,7 @@ func TestPrintMsg(t *testing.T) {
|
|||||||
msg := &model.PrintMsg{
|
msg := &model.PrintMsg{
|
||||||
ModelIDCULD: model.ModelIDCULD{},
|
ModelIDCULD: model.ModelIDCULD{},
|
||||||
PrintNo: "20220707000002",
|
PrintNo: "20220707000002",
|
||||||
Content: "<sound>64,64,66</sound>",
|
Content: "<sound>64,65,66</sound>",
|
||||||
OrderNo: 202207261655,
|
OrderNo: 202207261655,
|
||||||
Status: 0,
|
Status: 0,
|
||||||
Comment: "",
|
Comment: "",
|
||||||
@@ -56,6 +57,7 @@ func TestCheckSum(t *testing.T) {
|
|||||||
fmt.Println("22222")
|
fmt.Println("22222")
|
||||||
}
|
}
|
||||||
fmt.Println("==========", int16Sound)
|
fmt.Println("==========", int16Sound)
|
||||||
|
fmt.Println("======2====", utf8.RuneCountInString("64,65,66"))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTen216(t *testing.T) {
|
func TestTen216(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user