1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

tested CvContour::APPROX_OPTION

This commit is contained in:
ser1zw 2011-02-16 01:04:10 +09:00
parent 7c752a17ab
commit 379f88ce82

View file

@ -8,6 +8,12 @@ include OpenCV
# Tests for OpenCV::CvContour
class TestCvContour < OpenCVTestCase
def test_APPROX_OPTION
assert_equal(CvContour::APPROX_OPTION[:method], 0)
assert_equal(CvContour::APPROX_OPTION[:accuracy], 1.0)
assert_false(CvContour::APPROX_OPTION[:recursive])
end
def test_initialize
contour = CvContour.new
assert_not_nil(contour)