test-rmath.cc File Reference

#include "config.h"
#include <iostream>
#include <string>
#include <cassert>
#include <limits>
#include <limits.h>
#include <float.h>
#include "asserts.h"
#include "types.h"
#include "error.h"
#include "rmath.h"

Include dependency graph for test-rmath.cc:

Go to the source code of this file.

Defines

#define TEST(expected, code)

Functions

void test1 (void)
void test2 (void)
void test3 (void)
void test4 (void)
void test5 (void)
void test6 (void)
void test7 (void)
void test8 (void)
void test9 (void)
int main (int argc, char *argv[])


Define Documentation

#define TEST expected,
code   ) 
 

Value:

thrown = false; \
        try { \
                code; \
        } \
        catch(error e) { \
                thrown = true; \
                if (thrown != expected) { \
                        std::cerr << e; \
                } \
        } \
        catch(...) { \
                assert(0); \
        }

Definition at line 18 of file test-rmath.cc.


Function Documentation

int main int  argc,
char *  argv[]
 

Definition at line 402 of file test-rmath.cc.

References err_unknown, test1(), test2(), test3(), test4(), test5(), test6(), test7(), test8(), and test9().

Here is the call graph for this function:

void test1 void   ) 
 

Definition at line 33 of file test-rmath.cc.

References TEST.

void test2 void   ) 
 

Definition at line 79 of file test-rmath.cc.

References TEST.

void test3 void   ) 
 

Definition at line 98 of file test-rmath.cc.

References max_limit(), and TEST.

Here is the call graph for this function:

void test4 void   ) 
 

Definition at line 123 of file test-rmath.cc.

References max_limit< double >(), max_limit< float >(), min_limit< double >(), and min_limit< float >().

Here is the call graph for this function:

void test5 void   ) 
 

Definition at line 200 of file test-rmath.cc.

References TEST, and safe_num< T >::value().

Here is the call graph for this function:

void test6 void   ) 
 

Definition at line 246 of file test-rmath.cc.

References TEST, and safe_num< T >::value().

Here is the call graph for this function:

void test7 void   ) 
 

Definition at line 271 of file test-rmath.cc.

References absolute(), and TEST.

Here is the call graph for this function:

void test8 void   ) 
 

Definition at line 279 of file test-rmath.cc.

References safe_num< T >::value().

Here is the call graph for this function:

void test9 void   ) 
 

Definition at line 360 of file test-rmath.cc.

Referenced by main().


Generated on Wed Jun 21 11:07:30 2006 for rvm by  doxygen 1.4.2