2014-04-28 09:54:41 +08:00
|
|
|
package i2c
|
|
|
|
|
|
|
|
import (
|
2014-06-14 03:48:00 +08:00
|
|
|
"github.com/hybridgroup/gobot"
|
|
|
|
"testing"
|
2014-04-28 09:54:41 +08:00
|
|
|
)
|
|
|
|
|
2014-06-14 07:01:39 +08:00
|
|
|
func initTestWiichuckDriver() *WiichuckDriver {
|
2014-06-16 08:22:50 +08:00
|
|
|
return NewWiichuckDriver(newI2cTestAdaptor("adaptor"), "bot")
|
2014-06-14 03:48:00 +08:00
|
|
|
}
|
2014-04-28 09:54:41 +08:00
|
|
|
|
2014-06-14 07:01:39 +08:00
|
|
|
func TestWiichuckDriverStart(t *testing.T) {
|
2014-06-14 03:48:00 +08:00
|
|
|
t.SkipNow()
|
2014-06-14 07:01:39 +08:00
|
|
|
d := initTestWiichuckDriver()
|
|
|
|
gobot.Expect(t, d.Start(), true)
|
2014-06-14 03:48:00 +08:00
|
|
|
}
|