1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00
hybridgroup.gobot/platforms/leap/leap_motion_adaptor_test.go

23 lines
448 B
Go
Raw Normal View History

2014-06-13 13:35:19 -07:00
package leap
import (
"github.com/hybridgroup/gobot"
"testing"
)
2014-06-13 16:01:39 -07:00
func initTestLeapMotionAdaptor() *LeapMotionAdaptor {
return NewLeapMotionAdaptor("bot", "/dev/null")
2014-06-13 13:35:19 -07:00
}
2014-06-13 16:01:39 -07:00
func TestLeapMotionAdaptorConnect(t *testing.T) {
2014-06-13 13:35:19 -07:00
t.SkipNow()
2014-06-13 16:01:39 -07:00
a := initTestLeapMotionAdaptor()
gobot.Assert(t, a.Connect(), true)
2014-06-13 13:35:19 -07:00
}
2014-06-13 16:01:39 -07:00
func TestLeapMotionAdaptorFinalize(t *testing.T) {
2014-06-13 13:35:19 -07:00
t.SkipNow()
2014-06-13 16:01:39 -07:00
a := initTestLeapMotionAdaptor()
gobot.Assert(t, a.Finalize(), true)
2014-06-13 13:35:19 -07:00
}