blob: ecf6e246294d20171d0668c17059110576d790fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
** -*- C -*-
**
** test.c
** Made by Bruno JOFRET <bruno.jofret@inria.fr>
**
** Started on Fri Dec 8 14:53:51 2006 jofret
** Last update Wed Jan 31 09:27:26 2007 jofret
**
** Copyright INRIA 2006
*/
#include <stdio.h>
#include "test.h"
void newline() {
printf("\n");
}
int main(int argc, char** argv) {
int cosStatus, coshStatus = 0;
int sinStatus, sinhStatus = 0;
int tanStatus, tanhStatus = 0;
int expStatus = 0;
printf("-*- -> Begin test sequence <- -*-");
newline();
/* Test Cosine stuffs */
cosStatus = testCos();
/* Test Hyperbolic Cosine stuffs */
coshStatus = testCosh();
/* Test Sine stuffs */
sinStatus = testSin();
/* Test Hyperbolic Sine stuffs */
sinStatus = testSinh();
/* Test Tangeant stuffs */
tanStatus = testTan();
/* Test Hyperbolic Tangeant stuffs */
tanhStatus = testTanh();
/* Test Exponential stuffs */
expStatus = testExp();
printf("-*- -> End test sequence <- -*-");
newline();
return (cosStatus+coshStatus+
sinStatus+sinhStatus+
tanStatus+tanhStatus+
expStatus);
}
|