diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-02-01 18:15:51 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-02-01 18:15:51 +0100 |
| commit | 0571557ad1a943739806046a24fdaf1e62b32886 (patch) | |
| tree | 22668b5f66de6543e61b4f081c9cee4cb0bc2a95 /tests/test.c | |
| parent | 49eab61d8be0d0a83f6a6c00c0a8fee73cf70992 (diff) | |
| download | nissy-0571557ad1a943739806046a24fdaf1e62b32886.tar.gz nissy-0571557ad1a943739806046a24fdaf1e62b32886.zip | |
Enabled make test and test.sh
Diffstat (limited to '')
| -rw-r--r-- | tests/test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test.c b/tests/test.c index c122db8..2055c78 100644 --- a/tests/test.c +++ b/tests/test.c | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #include <stdio.h> | 1 | #include "test.h" |
| 2 | #include "fst_tests.h" | ||
| 3 | 2 | ||
| 4 | static bool run_test(Test *); | 3 | static bool run_test(Test *); |
| 5 | static bool run_suite(TestSuite *); | 4 | static bool run_suite(TestSuite *); |
| @@ -38,6 +37,9 @@ run_suite(TestSuite *suite) | |||
| 38 | } | 37 | } |
| 39 | 38 | ||
| 40 | int main() { | 39 | int main() { |
| 40 | init_env(); | ||
| 41 | init_trans(); | ||
| 42 | |||
| 41 | if (!run_suite(&fst_pre_init_suite)) | 43 | if (!run_suite(&fst_pre_init_suite)) |
| 42 | return 1; | 44 | return 1; |
| 43 | if (!run_suite(&fst_post_init_suite)) | 45 | if (!run_suite(&fst_post_init_suite)) |
