gnuradio::gr_unittest::TestCase Class Reference

List of all members.


Detailed Description

A subclass of unittest.TestCase that adds additional assertions.

Adds new methods assertComplexAlmostEqual, assertComplexTuplesAlmostEqual and assertFloatTuplesAlmostEqual

Public Member Functions

def assertComplexAlmostEqual
 Fail if the two complex objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
def assertComplexAlmostEqual2
 Fail if the two complex objects are unequal as determined by.
def assertComplexTuplesAlmostEqual
def assertComplexTuplesAlmostEqual2
def assertFloatTuplesAlmostEqual
def assertFloatTuplesAlmostEqual2


Member Function Documentation

def gnuradio::gr_unittest::TestCase::assertComplexAlmostEqual (   self,
  first,
  second,
  places = 7,
  msg = None 
)

Fail if the two complex objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.

Note that decimal places (from zero) is usually not the same as significant digits (measured from the most signficant digit).

def gnuradio::gr_unittest::TestCase::assertComplexAlmostEqual2 (   self,
  ref,
  x,
  abs_eps = 1e-12,
  rel_eps = 1e-6,
  msg = None 
)

Fail if the two complex objects are unequal as determined by.

..

def gnuradio::gr_unittest::TestCase::assertComplexTuplesAlmostEqual (   self,
  a,
  b,
  places = 7,
  msg = None 
)

def gnuradio::gr_unittest::TestCase::assertComplexTuplesAlmostEqual2 (   self,
  ref,
  x,
  abs_eps = 1e-12,
  rel_eps = 1e-6,
  msg = None 
)

def gnuradio::gr_unittest::TestCase::assertFloatTuplesAlmostEqual (   self,
  a,
  b,
  places = 7,
  msg = None 
)

def gnuradio::gr_unittest::TestCase::assertFloatTuplesAlmostEqual2 (   self,
  ref,
  x,
  abs_eps = 1e-12,
  rel_eps = 1e-6,
  msg = None 
)


The documentation for this class was generated from the following file:

Generated on Wed Jun 11 10:19:46 2008 for GNU Radio 3.1.2 by  doxygen 1.5.6