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:
parent
4f391d6efb
commit
fcbf8b2a35
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue