mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-26 13:48:49 +08:00
17 lines
280 B
Go
17 lines
280 B
Go
package ble
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func initTestBLESerialPort() *SerialPort {
|
|
return NewSerialPort("TEST123", "123", "456")
|
|
}
|
|
|
|
func TestBLESerialPort(t *testing.T) {
|
|
d := initTestBLESerialPort()
|
|
assert.Equal(t, "TEST123", d.Address())
|
|
}
|