included failed ics file in unit tests
This commit is contained in:
parent
58e0c8feb3
commit
8bdb19d0c0
@ -7,6 +7,7 @@ test_parse_ics_file:
|
|||||||
|
|
||||||
test_print_upcoming:
|
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
|
$(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:
|
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
|
$(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
|
||||||
|
@ -8,5 +8,5 @@ int main() {
|
|||||||
|
|
||||||
parse_ics_file("../tests/calendar.ics", &head);
|
parse_ics_file("../tests/calendar.ics", &head);
|
||||||
|
|
||||||
print_list(head);
|
parse_ics_file("../tests/failed_cal.ics", &head);
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ int main() {
|
|||||||
|
|
||||||
printf("DEBUG - current_date: %s\n\n", current_date);
|
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);
|
print_upcoming(head, current_date, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user