20 lines
357 B
Go
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")
|
|
}
|