Added unit tests

This commit is contained in:
2026-05-26 13:38:15 +02:00
parent 3232e4f44f
commit 4da59836be
7 changed files with 409 additions and 11 deletions
+9 -1
View File
@@ -4,6 +4,8 @@ LIBS = -lraylib -lm -lpthread -ldl
TARGET = main
SRC = main.c game.c ui.c
TEST_TARGET = munit_tests
TEST_SRC = munit.c game.c munit/munit.c
all: $(TARGET)
@@ -16,4 +18,10 @@ clean:
run: $(TARGET)
./$(TARGET)
.PHONY: all clean run
test: $(TEST_TARGET)
./$(TEST_TARGET)
$(TEST_TARGET): $(TEST_SRC)
$(CC) $(CFLAGS) $(TEST_SRC) -o $(TEST_TARGET) $(LIBS)
.PHONY: all clean run test