ble: add a little bit of additional test coverage
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
25d7956cfb
commit
11e1a1376c
|
@ -17,4 +17,11 @@ func initTestBLEClientAdaptor() *ClientAdaptor {
|
|||
func TestBLEClientAdaptor(t *testing.T) {
|
||||
a := NewClientAdaptor("D7:99:5A:26:EC:38")
|
||||
gobottest.Assert(t, a.Address(), "D7:99:5A:26:EC:38")
|
||||
gobottest.Assert(t, a.Name(), "BLECLient")
|
||||
}
|
||||
|
||||
func TestBLEClientAdaptorName(t *testing.T) {
|
||||
a := NewClientAdaptor("D7:99:5A:26:EC:38")
|
||||
a.SetName("awesome")
|
||||
gobottest.Assert(t, a.Name(), "awesome")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue