hybridgroup.gobot/platforms/ble/serial_port_test.go

17 lines
276 B
Go

package ble
import (
"testing"
"gobot.io/x/gobot/gobottest"
)
func initTestBLESerialPort() *SerialPort {
return NewSerialPort("TEST123", "123", "456")
}
func TestBLESerialPort(t *testing.T) {
d := initTestBLESerialPort()
gobottest.Assert(t, d.Address(), "TEST123")
}