Ai
3 Star 0 Fork 3

上海炘璞电子科技有限公司/detonator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
channel_test.go 373 Bytes
一键复制 编辑 原始数据 按行查看 历史
alex.dou 提交于 2023-11-14 14:33 +08:00 . c
package coder
import (
"github.com/lishimeng/app-starter/tool"
"testing"
)
func TestChannel(t *testing.T) {
c := Channel{}
c.Enable(4)
c.Enable(3)
c.Enable(2)
c.Enable(1)
c.Enable(5)
c.Enable(6)
c.Enable(7)
c.Enable(8)
c.Enable(9)
c.Enable(10)
var r = c.build()
t.Log(tool.BytesToHex(r))
if r[2] != 0x03 || r[3] != 0xff {
t.Fatal("expect 0x03ff")
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/thingple/detonator.git
git@gitee.com:thingple/detonator.git
thingple
detonator
detonator
v0.0.19

搜索帮助