1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-01 13:48:57 +08:00
hybridgroup.gobot/platforms/opencv/camera_driver_test.go
2014-05-22 20:53:15 -07:00

27 lines
443 B
Go

package opencv
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Camera", func() {
var (
c *CameraDriver
)
BeforeEach(func() {
c = NewCameraDriver("bot", 0)
})
PIt("Must be able to Start", func() {
Expect(c.Start()).To(Equal(true))
})
PIt("Must be able to Init", func() {
Expect(c.Init()).To(Equal(true))
})
PIt("Must be able to Halt", func() {
Expect(c.Halt()).To(Equal(true))
})
})