Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:03:55

0001 /* err/gsl_test.h
0002  * 
0003  * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
0004  * 
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License as published by
0007  * the Free Software Foundation; either version 3 of the License, or (at
0008  * your option) any later version.
0009  * 
0010  * This program is distributed in the hope that it will be useful, but
0011  * WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013  * General Public License for more details.
0014  * 
0015  * You should have received a copy of the GNU General Public License
0016  * along with this program; if not, write to the Free Software
0017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0018  */
0019 
0020 #ifndef __GSL_TEST_H__
0021 #define __GSL_TEST_H__
0022 
0023 #undef __BEGIN_DECLS
0024 #undef __END_DECLS
0025 #ifdef __cplusplus
0026 # define __BEGIN_DECLS extern "C" {
0027 # define __END_DECLS }
0028 #else
0029 # define __BEGIN_DECLS /* empty */
0030 # define __END_DECLS /* empty */
0031 #endif
0032 
0033 __BEGIN_DECLS
0034 
0035 void
0036   gsl_test (int status, const char *test_description, ...);
0037 
0038 void
0039 gsl_test_rel (double result, double expected, double relative_error,
0040               const char *test_description, ...) ;
0041 
0042 void
0043 gsl_test_abs (double result, double expected, double absolute_error,
0044               const char *test_description, ...) ;
0045 
0046 void
0047 gsl_test_factor (double result, double expected, double factor,
0048                  const char *test_description, ...) ;
0049 
0050 void
0051 gsl_test_int (int result, int expected, const char *test_description, ...) ;
0052 
0053 void
0054 gsl_test_str (const char * result, const char * expected, 
0055               const char *test_description, ...) ;
0056 
0057 void
0058   gsl_test_verbose (int verbose) ;
0059 
0060 int
0061   gsl_test_summary (void) ;
0062 
0063 
0064 __END_DECLS
0065 
0066 #endif /* __GSL_TEST_H__ */