test_math_utils_sanity.c
Go to the documentation of this file.
00001 #include "csm_all.h"
00002 #include <time.h>
00003 
00004 #include "math_utils.h"
00005 
00006 int main() {
00007 
00008         int errors = 0;
00009         double should_be_nan[2] = { 0.0 / 0.0, GSL_NAN };
00010         
00011         int i;
00012         for(i=0;i<2;i++) {
00013                 if(!isnan(should_be_nan[i])) {
00014                         printf("#%d: isnan(%f) failed \n", i, should_be_nan[i]);
00015                         errors++;
00016                 }
00017                 if(!is_nan(should_be_nan[i])) {
00018                         printf("#%d: is_nan(%f) failed \n", i, should_be_nan[i]);
00019                         errors++;
00020                 }
00021         }
00022         
00023         return errors;
00024 }


csm_ros
Author(s): Gaƫl Ecorchard , Ivan Dryanovski, William Morris, Andrea Censi
autogenerated on Sat Jun 8 2019 19:52:42