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:
parent
3d45dd1146
commit
1dc04e0e3d
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue