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

added type check to some CvMat methods (5)

This commit is contained in:
ser1zw 2011-07-03 17:44:46 +09:00
parent 3d45dd1146
commit 1dc04e0e3d

View file

@ -40,6 +40,10 @@ class TestCvMat_dxt < OpenCVTestCase
assert_in_delta(mat0[j, 0][0], mat3[j, 0][0], 0.001)
assert_in_delta(mat0[j, 0][1], mat3[j, 0][1], 0.001)
}
assert_raise(TypeError) {
mat0.dft(DUMMY_OBJ)
}
end
def test_dft_2D
@ -98,6 +102,10 @@ class TestCvMat_dxt < OpenCVTestCase
assert_in_delta(expected1[j], mat1[j, 0][0], 0.001)
assert_in_delta(mat0[j, 0][0], mat2[j, 0][0], 0.001)
}
assert_raise(TypeError) {
mat0.dct(DUMMY_OBJ)
}
end
def test_dct_2D