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

added a test case to test_curve.rb

This commit is contained in:
ser1zw 2011-05-21 20:45:57 +09:00
parent 67de94e711
commit d6c65ceee8

View file

@ -36,6 +36,7 @@ class TestCurve < OpenCVTestCase
def test_arc_length
assert_in_delta(211.480, @contour2.arc_length, 0.001)
assert_in_delta(18.071, @contour2.arc_length(CvSlice.new(0, 9), true), 0.001)
assert_in_delta(18.071, @contour2.arc_length(0..10, true), 0.001)
end
end