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

23 lines
381 B
Go
Raw Normal View History

package ollie
import (
"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, d.Name(), "Ollie")
}