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

implemented to_a to CvCircle32f, CvPoint, CvPoint2D32f, CvPoint3D32f, CvScalar, CvSize, CvSize2D32f, CvTermCriteria, CvTwoPoints, CvVector, and added tests for them

This commit is contained in:
ser1zw 2011-01-10 01:18:11 +09:00
parent c98f5efbc9
commit 9791dae3bd
16 changed files with 41 additions and 2 deletions

View file

@ -64,6 +64,11 @@ class TestCvPoint < OpenCVTestCase
a = CvPoint.new(10, 20).to_ary
assert_equal(10, a[0])
assert_equal(20, a[1])
# Alias
a = CvPoint.new(10, 20).to_a
assert_equal(10, a[0])
assert_equal(20, a[1])
end
end