Compare commits

...

4 Commits

Author SHA1 Message Date
7127fe6d3f makefile verändert 2025-12-11 11:55:13 +01:00
44434a8c67 makefile verändert 2025-12-11 11:54:52 +01:00
5ee0f97dc6 test 1 2025-12-11 11:42:46 +01:00
6dd963c40e makefile verändert 2025-12-11 11:40:17 +01:00
4 changed files with 6 additions and 4 deletions

View File

@ -35,8 +35,10 @@ $(program_obj_filesobj_files): %.o: %.c
# --------------------------
# Unit Tests
# --------------------------
unitTests:
echo "needs to be implemented"
unitTestsStack: stack.o test_stack.c $(unityfolder)/unity.c
$(CC) $(FLAGS) -I$(unityfolder) $^ -o $@
# --------------------------
# Clean

BIN
stack.o Normal file

Binary file not shown.

View File

@ -39,7 +39,7 @@ void test_push_and_top(void)
TEST_ASSERT_EQUAL_INT(30, *(int*)top(stack));
clearStack(&stack);
clearStack(stack);
TEST_ASSERT_NULL(stack);
}
@ -72,7 +72,7 @@ void test_clearStack(void)
stack = push(stack, &x);
stack = push(stack, &y);
clearStack(&stack);
clearStack(stack);
TEST_ASSERT_NULL(stack);
}

BIN
unitTestsStack.exe Normal file

Binary file not shown.