diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2016-05-17 23:02:04 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2016-05-17 23:02:04 +0200 |
| commit | 7d9f7e9341ab22599ea541959dbf9323661c777f (patch) | |
| tree | 93b9262f64b606089b6b85aceafc47fa631887e8 /tests/src/test_gensvm_task.c | |
| parent | make blas and lapack calls more compact (diff) | |
| download | gensvm-7d9f7e9341ab22599ea541959dbf9323661c777f.tar.gz gensvm-7d9f7e9341ab22599ea541959dbf9323661c777f.zip | |
start adding unit tests
Diffstat (limited to 'tests/src/test_gensvm_task.c')
| -rw-r--r-- | tests/src/test_gensvm_task.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/src/test_gensvm_task.c b/tests/src/test_gensvm_task.c new file mode 100644 index 0000000..e39634b --- /dev/null +++ b/tests/src/test_gensvm_task.c @@ -0,0 +1,26 @@ +/** + * @file test_gensvm_task.c + * @author Gertjan van den Burg + * @date May, 2016 + * @brief Unit tests for gensvm_task.c functions + */ + +#include "minunit.h" +#include "gensvm_task.h" + +char *test_init_free_task() +{ + struct GenTask *task = gensvm_init_task(); + gensvm_free_task(task); + return NULL; +} + +char *all_tests() +{ + mu_suite_start(); + mu_run_test(test_init_free_task); + + return NULL; +} + +RUN_TESTS(all_tests); |
