Compare commits
No commits in common. "7127fe6d3fca1cf489c3730bea889104bf716c44" and "3b0a8a24ffcd2d9bfbb9641c1041afc721ca1fe9" have entirely different histories.
7127fe6d3f
...
3b0a8a24ff
6
makefile
6
makefile
@ -35,10 +35,8 @@ $(program_obj_filesobj_files): %.o: %.c
|
||||
# --------------------------
|
||||
# Unit Tests
|
||||
# --------------------------
|
||||
unitTestsStack: stack.o test_stack.c $(unityfolder)/unity.c
|
||||
$(CC) $(FLAGS) -I$(unityfolder) $^ -o $@
|
||||
|
||||
|
||||
unitTests:
|
||||
echo "needs to be implemented"
|
||||
|
||||
# --------------------------
|
||||
# Clean
|
||||
|
||||
@ -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);
|
||||
}
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user