hybridgroup.gobot/platforms/ble/ble_client_adaptor_test.go

21 lines
381 B
Go
Raw Normal View History

2015-06-08 03:38:19 +08:00
package ble
import (
"testing"
"gobot.io/x/gobot"
"gobot.io/x/gobot/gobottest"
2015-06-08 03:38:19 +08:00
)
var _ gobot.Adaptor = (*ClientAdaptor)(nil)
func initTestBLEClientAdaptor() *ClientAdaptor {
a := NewClientAdaptor("D7:99:5A:26:EC:38")
2015-06-08 03:38:19 +08:00
return a
}
func TestBLEClientAdaptor(t *testing.T) {
a := NewClientAdaptor("D7:99:5A:26:EC:38")
gobottest.Assert(t, a.Address(), "D7:99:5A:26:EC:38")
2015-06-08 03:38:19 +08:00
}