gobot.io/x/gobot@v1.16.0/platforms/parrot/bebop/bebop_driver_test.go (about) 1 package bebop 2 3 import ( 4 "strings" 5 "testing" 6 7 "gobot.io/x/gobot" 8 "gobot.io/x/gobot/gobottest" 9 ) 10 11 var _ gobot.Driver = (*Driver)(nil) 12 13 func TestBebopDriverName(t *testing.T) { 14 a := initTestBebopAdaptor() 15 d := NewDriver(a) 16 gobottest.Assert(t, strings.HasPrefix(d.Name(), "Bebop"), true) 17 d.SetName("NewName") 18 gobottest.Assert(t, d.Name(), "NewName") 19 }