1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-29 13:49:14 +08:00
hybridgroup.gobot/platforms/parrot/bebop/bebop_driver_test.go
deadprogram 2867e6b94b bebop: increase test coverage
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-06 11:08:02 +02:00

20 lines
357 B
Go

package bebop
import (
"strings"
"testing"
"gobot.io/x/gobot"
"gobot.io/x/gobot/gobottest"
)
var _ gobot.Driver = (*Driver)(nil)
func TestBebopDriverName(t *testing.T) {
a := initTestBebopAdaptor()
d := NewDriver(a)
gobottest.Assert(t, strings.HasPrefix(d.Name(), "Bebop"), true)
d.SetName("NewName")
gobottest.Assert(t, d.Name(), "NewName")
}