summaryrefslogtreecommitdiff
path: root/src/test/test.c
blob: ffeeeb2a6a16da7e27f96740296e97249e986a07 (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
/*
**  -*- C -*-
**
** test.c
** Made by  Bruno JOFRET <bruno.jofret@inria.fr>
**
** Started on  Fri Dec  8 14:53:51 2006 jofret
** Last update Mon Jan 29 17:24:07 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;


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

  printf("-*- -> End test sequence <- -*-");
  newline();

  return (cosStatus+coshStatus+
	  sinStatus+sinhStatus+
	  tanStatus+tanhStatus);
}