diff options
author | c | 2024-01-27 22:58:23 -0500 |
---|---|---|
committer | c | 2024-01-27 22:58:23 -0500 |
commit | 87e0d4b3d23a7eb38f0e196eac333c318fef27ea (patch) | |
tree | ce3b2cee903b7022e57a558f4725fed2b58e2813 /test/tree.c | |
parent | f48c3a6cb320c897ca7477af17f8e5eb7447fd72 (diff) |
Added string parsing, and tests for more blocks.
cool bug on window rn
Diffstat (limited to 'test/tree.c')
-rw-r--r-- | test/tree.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/test/tree.c b/test/tree.c index 1b2742c..b9ef210 100644 --- a/test/tree.c +++ b/test/tree.c @@ -3,12 +3,17 @@ #include "../src/include/lexer.h" #include "../src/include/tree.h" -unsigned int TESTS_RUN = 0, TESTS_PASSED = 0; +TEST_INIT -int main(int argc, char** argv) { +/* + I wrote these before I started putting tests in their own functions, so + this'll have to do for now. +*/ +void test_things() { tree_t* tree_0; tree_t* tree_1; + /* Not refactoring this. */ tree_t* tree_lint_0; tree_t* tree_lint_1; tree_t* tree_lstr_0; @@ -240,7 +245,10 @@ int main(int argc, char** argv) { ASSERT(tree_cmp(tree_block_0, tree_block_0) == 1); ASSERT(tree_cmp(tree_block_0, tree_block_1) == 0); +} + +int main() { + test_things(); - TEST_REPORT; - return 0; + TEST_REPORT } |