From 8bdb19d0c0b05e210090252d3fdcf48dcaf6bbbb Mon Sep 17 00:00:00 2001 From: bjt-user Date: Sun, 17 Nov 2024 09:39:03 +0100 Subject: [PATCH] included failed ics file in unit tests --- unit-tests/Makefile | 1 + unit-tests/test_parse_ics_file.c | 2 +- unit-tests/test_print_upcoming.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/unit-tests/Makefile b/unit-tests/Makefile index 414c49c..aaf44df 100644 --- a/unit-tests/Makefile +++ b/unit-tests/Makefile @@ -7,6 +7,7 @@ test_parse_ics_file: test_print_upcoming: $(CC) $(CFLAGS) test_print_upcoming.c ../src/parse_ics.c ../src/string_handling.c ../src/list_handling.c ../src/date_time_handling.c ../src/read_until_string.c ../src/read_until_nl.c -o test_print_upcoming.out + ./test_print_upcoming.out test_pretty_print_date_time: $(CC) $(CFLAGS) test_pretty_print_date_time.c ../src/string_handling.c ../src/date_time_handling.c ../src/read_until_string.c ../src/read_until_nl.c -o test_pretty_print_date_time.out diff --git a/unit-tests/test_parse_ics_file.c b/unit-tests/test_parse_ics_file.c index 820091e..93819d3 100644 --- a/unit-tests/test_parse_ics_file.c +++ b/unit-tests/test_parse_ics_file.c @@ -8,5 +8,5 @@ int main() { parse_ics_file("../tests/calendar.ics", &head); - print_list(head); + parse_ics_file("../tests/failed_cal.ics", &head); } diff --git a/unit-tests/test_print_upcoming.c b/unit-tests/test_print_upcoming.c index 8054f7f..8e60c87 100644 --- a/unit-tests/test_print_upcoming.c +++ b/unit-tests/test_print_upcoming.c @@ -10,7 +10,7 @@ int main() { printf("DEBUG - current_date: %s\n\n", current_date); - parse_ics_file("/home/bf/.local/share/evolution/calendar/system/calendar.ics", &head); + parse_ics_file("../tests/failed_cal.ics", &head); print_upcoming(head, current_date, 0); }