diff --git a/test/test_cvscalar.rb b/test/test_cvscalar.rb index 4103819..44c2cd0 100755 --- a/test/test_cvscalar.rb +++ b/test/test_cvscalar.rb @@ -67,9 +67,9 @@ class TestCvScalar < OpenCVTestCase } mat = CvScalar.new(0.1).sub(mat, mask) - [CvMat.new(5, 5, :cv16u, 1), CvMat.new(5, 5, :cv8u, 3)].each { |mask| + [CvMat.new(5, 5, :cv16u, 1), CvMat.new(5, 5, :cv8u, 3)].each { |msk| assert_raise(TypeError) { - CvScalar.new.sub(mat, mask) + CvScalar.new.sub(mat, msk) } } end diff --git a/test/test_preliminary.rb b/test/test_preliminary.rb index b530c44..19beeff 100755 --- a/test/test_preliminary.rb +++ b/test/test_preliminary.rb @@ -104,8 +104,8 @@ class TestPreliminary < OpenCVTestCase } } - mat = create_cvmat(2, 3, :cv16u, 3) { |j, i, c| - n = j + i + c + mat = create_cvmat(2, 3, :cv16u, 3) { |j, i, cnt| + n = j + i + cnt CvScalar.new(n, n, n, 0) } assert_equal(2, mat.height)