mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-29 13:49:14 +08:00
17 lines
276 B
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")
|
||
|
}
|