2014-04-27 18:02:39 -07:00
|
|
|
package joystick
|
2014-04-26 03:11:51 -07:00
|
|
|
|
|
|
|
import (
|
2014-06-13 12:54:21 -07:00
|
|
|
"github.com/hybridgroup/gobot"
|
|
|
|
"testing"
|
2014-04-26 03:11:51 -07:00
|
|
|
)
|
|
|
|
|
2014-06-13 16:01:39 -07:00
|
|
|
func initTestJoystickAdaptor() *JoystickAdaptor {
|
|
|
|
return NewJoystickAdaptor("bot")
|
2014-06-13 12:54:21 -07:00
|
|
|
}
|
2014-04-26 03:11:51 -07:00
|
|
|
|
2014-06-13 16:01:39 -07:00
|
|
|
func TestJoystickAdaptorConnect(t *testing.T) {
|
2014-06-13 12:54:21 -07:00
|
|
|
t.SkipNow()
|
2014-06-13 16:01:39 -07:00
|
|
|
a := initTestJoystickAdaptor()
|
2014-07-17 11:41:47 -07:00
|
|
|
gobot.Assert(t, a.Connect(), true)
|
2014-06-13 12:54:21 -07:00
|
|
|
}
|
2014-06-13 16:01:39 -07:00
|
|
|
|
|
|
|
func TestJoystickAdaptorFinalize(t *testing.T) {
|
2014-06-13 12:54:21 -07:00
|
|
|
t.SkipNow()
|
2014-06-13 16:01:39 -07:00
|
|
|
a := initTestJoystickAdaptor()
|
2014-07-17 11:41:47 -07:00
|
|
|
gobot.Assert(t, a.Finalize(), true)
|
2014-06-13 12:54:21 -07:00
|
|
|
}
|