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()
|
2014-07-17 11:41:47 -07:00
|
|
|
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()
|
2014-07-17 11:41:47 -07:00
|
|
|
gobot.Assert(t, a.Finalize(), true)
|
2014-06-13 13:35:19 -07:00
|
|
|
}
|