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:
parent
7c752a17ab
commit
379f88ce82
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,12 @@ include OpenCV
|
||||||
|
|
||||||
# Tests for OpenCV::CvContour
|
# Tests for OpenCV::CvContour
|
||||||
class TestCvContour < OpenCVTestCase
|
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
|
def test_initialize
|
||||||
contour = CvContour.new
|
contour = CvContour.new
|
||||||
assert_not_nil(contour)
|
assert_not_nil(contour)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue