Functions
core/testlib/testlib_test.cxx File Reference
#include "testlib_test.h"
#include <vcl_cmath.h>
#include <vcl_cstdlib.h>
#include <vcl_iostream.h>
#include <vcl_iomanip.h>
#include <vcl_complex.h>

Go to the source code of this file.

Functions

void testlib_test_start (const char *name)
 initialise test counters, check test name 'name' exists.
void testlib_test_begin (const char *msg)
 increment number of tests, then output msg.
void testlib_test_perform (bool success)
 increment success/failure counters.
int testlib_test_summary ()
 output summary of tests performed.
void testlib_test_assert (const vcl_string &msg, bool expr)
 output msg, then perform test in expr.
void testlib_test_assert_near (const vcl_string &msg, double expr, double target, double tol)
 output msg, then perform test to see if expr is within tol of target.
void testlib_test_assert_near (const vcl_string &msg, vcl_complex< double > expr, vcl_complex< double > target, double tol)
 output msg, then perform test to see if expr is within tol of target.
void testlib_test_assert_near_relative (const vcl_string &msg, double expr, double target, double tol)
 output msg, then test to see if expr is within relative tol of target.
void testlib_test_assert_near_relative (const vcl_string &msg, vcl_complex< double > expr, vcl_complex< double > target, double tol)
 output msg, then test to see if expr is within relative tol of target.
void testlib_test_assert_far (const vcl_string &msg, double expr, double target, double tol)
 output msg, then perform test to see if expr is not within tol of target.
void testlib_test_assert_far (const vcl_string &msg, vcl_complex< double > expr, vcl_complex< double > target, double tol)
 output msg, then perform test to see if expr is not within tol of target.
void testlib_test_assert_equal (const vcl_string &msg, long expr, long target)
 output msg, then perform test to see if expr is equal to target.

Function Documentation

void testlib_test_assert ( const vcl_string &  msg,
bool  expr 
)

output msg, then perform test in expr.

Definition at line 95 of file testlib_test.cxx.

void testlib_test_assert_equal ( const vcl_string &  msg,
long  expr,
long  target 
)

output msg, then perform test to see if expr is equal to target.

Definition at line 159 of file testlib_test.cxx.

void testlib_test_assert_far ( const vcl_string &  msg,
double  expr,
double  target,
double  tol 
)

output msg, then perform test to see if expr is not within tol of target.

Definition at line 141 of file testlib_test.cxx.

void testlib_test_assert_far ( const vcl_string &  msg,
vcl_complex< double >  expr,
vcl_complex< double >  target,
double  tol 
)

output msg, then perform test to see if expr is not within tol of target.

Definition at line 150 of file testlib_test.cxx.

void testlib_test_assert_near ( const vcl_string &  msg,
double  expr,
double  target,
double  tol 
)

output msg, then perform test to see if expr is within tol of target.

Definition at line 101 of file testlib_test.cxx.

void testlib_test_assert_near ( const vcl_string &  msg,
vcl_complex< double >  expr,
vcl_complex< double >  target,
double  tol 
)

output msg, then perform test to see if expr is within tol of target.

Definition at line 110 of file testlib_test.cxx.

void testlib_test_assert_near_relative ( const vcl_string &  msg,
double  expr,
double  target,
double  tol 
)

output msg, then test to see if expr is within relative tol of target.

Definition at line 119 of file testlib_test.cxx.

void testlib_test_assert_near_relative ( const vcl_string &  msg,
vcl_complex< double >  expr,
vcl_complex< double >  target,
double  tol 
)

output msg, then test to see if expr is within relative tol of target.

Definition at line 130 of file testlib_test.cxx.

void testlib_test_begin ( const char *  msg)

increment number of tests, then output msg.

Definition at line 40 of file testlib_test.cxx.

void testlib_test_perform ( bool  success)

increment success/failure counters.

Definition at line 52 of file testlib_test.cxx.

void testlib_test_start ( const char *  name)

initialise test counters, check test name 'name' exists.

Definition at line 28 of file testlib_test.cxx.

int testlib_test_summary ( )

output summary of tests performed.

Definition at line 63 of file testlib_test.cxx.