#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"
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 const *argv[]) |
| #define TEST | ( | expected, | |||
| code | ) |
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.
| int main | ( | int | argc, | |
| char const * | argv[] | |||
| ) |
| 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.

| 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 >().

| void test5 | ( | void | ) |
Definition at line 200 of file test-rmath.cc.
References TEST, and safe_num< T >::value().

| void test6 | ( | void | ) |
Definition at line 246 of file test-rmath.cc.
References TEST, and safe_num< T >::value().

| void test7 | ( | void | ) |
Definition at line 271 of file test-rmath.cc.
References absolute(), and TEST.

| void test8 | ( | void | ) |
Definition at line 279 of file test-rmath.cc.
References safe_num< T >::value().

| void test9 | ( | void | ) |
Definition at line 360 of file test-rmath.cc.
1.6.1