2014-04-26 18:07:04 -07:00
|
|
|
package sphero
|
2014-04-26 03:11:51 -07:00
|
|
|
|
|
|
|
import (
|
2014-06-13 14:26:18 -07:00
|
|
|
"github.com/hybridgroup/gobot"
|
|
|
|
"testing"
|
2014-04-26 03:11:51 -07:00
|
|
|
)
|
|
|
|
|
2014-06-13 14:26:18 -07:00
|
|
|
var s *SpheroDriver
|
2014-04-26 03:11:51 -07:00
|
|
|
|
2014-06-13 14:26:18 -07:00
|
|
|
func init() {
|
|
|
|
a := NewSpheroAdaptor("bot", "/dev/null")
|
|
|
|
a.sp = sp{}
|
|
|
|
s = NewSpheroDriver(a, "bot")
|
|
|
|
}
|
2014-04-26 03:11:51 -07:00
|
|
|
|
2014-06-13 14:26:18 -07:00
|
|
|
func TestStart(t *testing.T) {
|
|
|
|
gobot.Expect(t, s.Start(), true)
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestHalt(t *testing.T) {
|
|
|
|
gobot.Expect(t, s.Halt(), true)
|
|
|
|
}
|