summaryrefslogtreecommitdiff
path: root/Examples/test_galois.c
blob: a913a7773d7f1852d8e5f617a00a2abc7a65df88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <assert.h>
#include "galois.h"

int main(int argc, char **argv)
{
  assert(galois_init_default_field(4) == 0);
  assert(galois_uninit_field(4) == 0);
  assert(galois_init_default_field(4) == 0);
  assert(galois_uninit_field(4) == 0);

  assert(galois_init_default_field(8) == 0);
  assert(galois_uninit_field(8) == 0);
  assert(galois_init_default_field(8) == 0);
  assert(galois_uninit_field(8) == 0);

  return 0;
}
/*
 * Local Variables:
 * compile-command: "make test_galois && 
 *    libtool --mode=execute valgrind --tool=memcheck --leak-check=full ./test_galois"
 * End:
 */