wrote main() in bintreeTests.c

This commit is contained in:
Jonas Hofmann 2025-12-08 08:30:10 +01:00
parent 409afc165b
commit ffde7270db

View File

@ -76,6 +76,10 @@ void test_addToTreeExpandsTreeCorrectly(void)
// test if nextTreeData returns the next pice of data correctly // test if nextTreeData returns the next pice of data correctly
// needs Stack!!! // needs Stack!!!
void test_nextTreeDataReturnsNextDataCorrectly(void)
{
}
// test if clear Tree frees all node.name and node memory AND sets them to zero // test if clear Tree frees all node.name and node memory AND sets them to zero
@ -163,7 +167,14 @@ void test_treeSizeWorkingLikeExpected(void)
// main, strings together all tests // main, strings together all tests
int main() int main()
{ {
printf("\n============================\nBinary Tree tests\n============================\n"); UNITY_BEGIN();
printf("\n============================\nBinary Tree tests\n============================\n");
RUN_TEST(test_addToTreeExpandsTreeCorrectly);
// RUN_TEST(test_nextTreeDataReturnsNextDataCorrectly);
RUN_TEST(test_clearTreeworksLikeExpected);
RUN_TEST(test_treeSizeWorkingLikeExpected);
return UNITY_END();
} }