initial implementation for numbers.c with some testing in test_numbers.c
numbers.c currently uses the qsort() function from stdlib
This commit is contained in:
@@ -37,6 +37,7 @@ $(program_obj_files): %.o: %.c
|
||||
# --------------------------
|
||||
TEST_STACK_SOURCES = stack.c test_stack.c $(unityfolder)/unity.c
|
||||
TEST_BINTREE_SOURCES = bintree.c test_bintree.c stack.c $(unityfolder)/unity.c
|
||||
TEST_NUMBERS_SOURCES = stack.c numbers.c bintree.c $(unityfolder)/unity.c test_numbers.c
|
||||
|
||||
stackTests: $(TEST_STACK_SOURCES) stack.h
|
||||
$(CC) $(CFLAGS) -I$(unityfolder) $(TEST_STACK_SOURCES) -o runStackTests
|
||||
@@ -46,6 +47,10 @@ bintreeTests: $(TEST_BINTREE_SOURCES) stack.h bintree.h
|
||||
$(CC) $(CFLAGS) -I$(unityfolder) $(TEST_BINTREE_SOURCES) -o runBintreeTests
|
||||
./runBintreeTests
|
||||
|
||||
numbersTests: $(TEST_NUMBERS_SOURCES) stack.h bintree.h numbers.h
|
||||
$(CC) $(CFLAGS) -I$(unityfolder) $(TEST_NUMBERS_SOURCES) -o runNumbersTests
|
||||
./runNumbersTests
|
||||
|
||||
# --------------------------
|
||||
# Clean
|
||||
# --------------------------
|
||||
|
||||
Reference in New Issue
Block a user