Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
modified some tests to suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ser1zw committed Apr 17, 2011
1 parent 9a1d060 commit b6eebd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/test_cvscalar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def test_sub
}
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
Expand Down
4 changes: 2 additions & 2 deletions test/test_preliminary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def test_create_cvmat
}
}

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)
Expand Down

0 comments on commit b6eebd4

Please sign in to comment.