1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-14 19:29:32 +08:00
hybridgroup.gobot/platforms/sphero/ollie/ollie_driver_test.go

24 lines
413 B
Go
Raw Normal View History

package ollie
import (
"strings"
"testing"
"gobot.io/x/gobot"
"gobot.io/x/gobot/gobottest"
"gobot.io/x/gobot/platforms/ble"
)
var _ gobot.Driver = (*Driver)(nil)
func initTestOllieDriver() *Driver {
d := NewDriver(ble.NewClientAdaptor("D7:99:5A:26:EC:38"))
return d
}
func TestOllieDriver(t *testing.T) {
d := initTestOllieDriver()
gobottest.Assert(t, strings.HasPrefix(d.Name(), "Ollie"), true)
}