mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
added test for CvAvgComp
This commit is contained in:
parent
4a976087ac
commit
eb7a797c26
1 changed files with 24 additions and 0 deletions
24
test/test_cvavgcomp.rb
Executable file
24
test/test_cvavgcomp.rb
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env ruby
|
||||
# -*- mode: ruby; coding: utf-8-unix -*-
|
||||
require 'test/unit'
|
||||
require 'opencv'
|
||||
require File.expand_path(File.dirname(__FILE__)) + '/helper'
|
||||
|
||||
include OpenCV
|
||||
|
||||
# Tests for OpenCV::CvAvgComp
|
||||
class TestCvAvgComp < OpenCVTestCase
|
||||
def setup
|
||||
@avgcomp = CvAvgComp.new
|
||||
end
|
||||
|
||||
def test_initialize
|
||||
assert_equal(CvAvgComp, @avgcomp.class)
|
||||
assert(@avgcomp.is_a? CvRect)
|
||||
end
|
||||
|
||||
def test_neighbors
|
||||
assert_equal(Fixnum, @avgcomp.neighbors.class)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in a new issue