diff options
author | jofret | 2007-04-18 16:46:20 +0000 |
---|---|---|
committer | jofret | 2007-04-18 16:46:20 +0000 |
commit | 9155c88f6221838ac3611d9cd651261663a37d1a (patch) | |
tree | 05f2e86ac01a7389b62d70bc974607f211c65bd6 /src/test/testTanh.c | |
parent | 771e292d6db8a486824193b85854f86057278647 (diff) | |
download | scilab2c-9155c88f6221838ac3611d9cd651261663a37d1a.tar.gz scilab2c-9155c88f6221838ac3611d9cd651261663a37d1a.tar.bz2 scilab2c-9155c88f6221838ac3611d9cd651261663a37d1a.zip |
Moving all tests in each function.
Better management with Autotools.
Make check is now available !!
Diffstat (limited to 'src/test/testTanh.c')
-rw-r--r-- | src/test/testTanh.c | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/src/test/testTanh.c b/src/test/testTanh.c deleted file mode 100644 index f0ee3e61..00000000 --- a/src/test/testTanh.c +++ /dev/null @@ -1,91 +0,0 @@ -/* -** -*- C -*- -** -** testTanh.c -** Made by Bruno JOFRET <bruno.jofret@inria.fr> -** -** Started on Fri Dec 8 15:05:44 2006 jofret -** Last update Fri Mar 30 14:07:53 2007 jofret -** -** Copyright INRIA 2006 -*/ - -#include "testTanh.h" - -void stanhsTest() { - printf(">> Float scalar\n"); - printf("stanhs(0) = %f\n", stanhs((float) 0)); - printf("stanhs(PI) = %f\n", stanhs(PI)); - printf("stanhs(PI/2) = %f\n", stanhs(PI/2)); - printf("stanhs(PI/3) = %f\n", stanhs(PI/3)); - printf("stanhs(PI/4) = %f\n", stanhs(PI/4)); - printf("stanhs(PI/6) = %f\n", stanhs(PI/6)); - printf("stanhs(-PI) = %f\n", stanhs(-PI)); - printf("stanhs(-PI/2) = %f\n", stanhs(-PI/2)); - printf("stanhs(-PI/3) = %f\n", stanhs(-PI/3)); - printf("stanhs(-PI/4) = %f\n", stanhs(-PI/4)); - printf("stanhs(-PI/6) = %f\n", stanhs(-PI/6)); -} - -void dtanhsTest() { - printf(">> Double scalar\n"); - printf("dtanhs(0) = %e\n", dtanhs((double) 0)); - printf("dtanhs(PI) = %e\n", dtanhs(PI)); - printf("dtanhs(PI/2) = %e\n", dtanhs(PI/2)); - printf("dtanhs(PI/3) = %e\n", dtanhs(PI/3)); - printf("dtanhs(PI/4) = %e\n", dtanhs(PI/4)); - printf("dtanhs(PI/6) = %e\n", dtanhs(PI/6)); - printf("dtanhs(-PI) = %e\n", dtanhs(-PI)); - printf("dtanhs(-PI/2) = %e\n", dtanhs(-PI/2)); - printf("dtanhs(-PI/3) = %e\n", dtanhs(-PI/3)); - printf("dtanhs(-PI/4) = %e\n", dtanhs(-PI/4)); - printf("dtanhs(-PI/6) = %e\n", dtanhs(-PI/6)); -} - -void ctanhsTest() { - printf(">> Float Complex scalar\n"); - /* FIXME : Implement some test here ... */ -} - -void ztanhsTest() { - printf(">> Double Complex scalar\n"); - /* FIXME : Implement some test here ... */ -} - -void stanhaTest() { - printf(">> Float array\n"); - /* FIXME : Implement some test here ... */ -} - -void dtanhaTest() { - printf(">> Double array\n"); - /* FIXME : Implement some test here ... */ -} - -void ctanhaTest() { - printf(">> Float Complex array\n"); - /* FIXME : Implement some test here ... */ -} - -void ztanhaTest() { - printf(">> Double Complex array\n"); - /* FIXME : Implement some test here ... */ -} - -int testTanh() { - printf("\n>>>> Hyperbolic Tangeant Tests\n"); - stanhsTest(); - dtanhsTest(); - ctanhsTest(); - ztanhsTest(); - stanhaTest(); - dtanhaTest(); - ctanhaTest(); - ztanhaTest(); - return 0; -} - -int main() { - assert(testTanh() == 0); - return 0; -} |