diff options
Diffstat (limited to 'Examples/test_galois.c')
-rw-r--r-- | Examples/test_galois.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Examples/test_galois.c b/Examples/test_galois.c new file mode 100644 index 0000000..a913a77 --- /dev/null +++ b/Examples/test_galois.c @@ -0,0 +1,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: + */ |