Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vnl_test.h File Reference

Go to the source code of this file.

Defines

#define START(s)   vnl_test_start(s);
#define TEST(s, p, v)
#define TEST_RUN(s, x, p, v)
#define SUMMARY()   vnl_test_summary();
#define TESTMAIN(x)   int x(int, char* [] ) { vnl_test_start(#x); x(); return vnl_test_summary(); }
#define macro(T)   void vnl_test_fill_random(T *begin, T *end)

Functions

void vnl_test_start (const char *name)
void vnl_test_begin (const char *msg)
void vnl_test_perform (int success)
int vnl_test_summary ()
void vnl_test_assert (const vcl_string &msg, bool expr)
void vnl_test_assert_near (const vcl_string &msg, double expr, double target=0, double tol=1e-12)
 macro (float)
 macro (double)
 macro (long double)
 macro (vcl_complex< float >)
 macro (vcl_complex< double >)
 macro (vcl_complex< long double >)


Detailed Description

Definition in file vnl_test.h.


Define Documentation

#define macro      void vnl_test_fill_random(T *begin, T *end)
 

Definition at line 70 of file vnl_test.h.

#define START      vnl_test_start(s);
 

Definition at line 46 of file vnl_test.h.

 
#define SUMMARY      vnl_test_summary();
 

Definition at line 61 of file vnl_test.h.

#define TEST s,
p,
 
 

Value:

{  \
  vnl_test_begin(s);  \
  vnl_test_perform(p==v); \
 }

Definition at line 48 of file vnl_test.h.

#define TEST_RUN s,
x,
p,
 
 

Value:

{  \
  x;  \
  vnl_test_begin(s);  \
  vnl_test_perform(p==v); \
 }

Definition at line 54 of file vnl_test.h.

#define TESTMAIN      int x(int, char* [] ) { vnl_test_start(#x); x(); return vnl_test_summary(); }
 

Definition at line 65 of file vnl_test.h.


Function Documentation

macro vcl_complex< long double >   
 

macro vcl_complex< double >   
 

macro vcl_complex< float >   
 

macro long    double
 

macro double   
 

macro float   
 

void vnl_test_assert const vcl_string &    msg,
bool    expr
 

void vnl_test_assert_near const vcl_string &    msg,
double    expr,
double    target = 0,
double    tol = 1e-12
 

void vnl_test_begin const char *    msg
 

void vnl_test_perform int    success
 

void vnl_test_start const char *    name
 

.

Author:
Copyright (C) 1991 Texas Instruments Incorporated.
Permission is granted to any individual or institution to use, copy, modify, and distribute this software, provided that this complete copyright and permission notice is maintained, intact, in all copies and supporting documentation.

Texas Instruments Incorporated provides this software "as is" without express or implied warranty.

int vnl_test_summary  
 


Generated at Fri May 21 01:16:10 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000