ble: add a little bit of additional test coverage

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-01-31 21:41:06 +01:00
parent 25d7956cfb
commit 11e1a1376c
1 changed files with 7 additions and 0 deletions

View File

@ -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")
}