From 437c40d8bcd533c8af6804f299f5e0cb974f7a9d Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Thu, 20 Jun 2024 15:17:05 +0300 Subject: added binary search function & tests Also fallthrough attribute --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5cfb50a..9db2e69 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ CFLAGS := -g -Wall -Wextra -Wpedantic -Werror -Wno-language-extension-token tests: dynarray -dynarray: tests/dynarray.c tests/dynarray_struct.c tests/obscure.c +dynarray: tests/dynarray.c tests/dynarray_struct.c tests/obscure.c tests/binary_search.c $(CC) $(CFLAGS) -o $@ $< -DTT_CHAR ./dynarray $(CC) $(CFLAGS) -o $@ $< -DTT_SHORT @@ -19,6 +19,8 @@ dynarray: tests/dynarray.c tests/dynarray_struct.c tests/obscure.c ./dynarray $(CC) $(CFLAGS) -o $@ tests/obscure.c ./dynarray + $(CC) $(CFLAGS) -o $@ tests/binary_search.c + ./dynarray rm $@ -- cgit v1.2.3-70-g09d2