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

25 lines
482 B
Ruby
Raw Normal View History

2011-05-20 12:48:14 -04:00
#!/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