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

fix test of Curve#arc_length

This commit is contained in:
ser1zw 2012-04-22 23:41:24 +09:00
parent 4f391d6efb
commit fcbf8b2a35

View file

@ -36,8 +36,8 @@ 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)
assert_in_delta(32.181, @contour2.arc_length(CvSlice.new(0, 9), true), 0.001)
assert_in_delta(32.181, @contour2.arc_length(0..10, true), 0.001)
end
end