Compare commits

..

No commits in common. "4b81d627f59868d56457e4bc4648410d27dcd16e" and "a118f4e92003a93a7323fd26edb19edd7ef6182e" have entirely different histories.

7 changed files with 3 additions and 11 deletions

BIN
highscore.o Normal file

Binary file not shown.

View File

@ -1,3 +1,2 @@
player1;4980
player_name;4980
player1;3999

BIN
main.o Normal file

Binary file not shown.

View File

@ -41,25 +41,18 @@ stack_test_objects = $(stack_test_sources:.c=.o)
numbers_test_sources = test_numbers.c numbers.c
numbers_test_objects = $(numbers_test_sources:.c=.o)
bintree_test_sources = test_bintree.c bintree.c
bintree_test_objects = $(bintree_test_sources:.c=.o)
stack_test_runner: $(stack_test_objects)
$(CC) $(FLAGS) $^ -o $@
numbers_test_runner: $(numbers_test_objects)
$(CC) $(FLAGS) $^ -o $@
bintree_test_runner: $(bintree_test_objects)
$(CC) $(FLAGS) $^ -o $@
unitTests: stack_test_runner numbers_test_runner bintree_test_runner
unitTests: stack_test_runner numbers_test_runner
@echo "============================="
@echo "Running Unit Tests..."
@echo "============================="
./stack_test_runner
./numbers_test_runner
./bintree_test_runner
@echo "============================="
@echo "Unit Tests Finished."
@echo "============================="

View File

@ -78,7 +78,7 @@ unsigned int *createNumbers(unsigned int len)
array[i] = rand() % (2*len) + 1;
}
//TODO: sicherstellen, dass im Array keine doppelten Zahlen vorhanden sind (Max)
position = rand() % len;
duplicate_value = array[position];
@ -86,7 +86,7 @@ unsigned int *createNumbers(unsigned int len)
do
{
pos_dup = rand() % len;
} while (pos_dup == position);
} while (pos_dup = duplicate_value);
array[pos_dup] = array[position];

BIN
numbers.o Normal file

Binary file not shown.

BIN
timer.o Normal file

Binary file not shown.