@@ -6886,13 +6886,10 @@ static void test_internal_limits(void)
68866886void test_icaldurationtype_normalize (void )
68876887{
68886888#define assert_normalized_duration (input , want ) \
6889- str_is("normalize(" input ")=" want, want, \
6890- icaldurationtype_as_ical_string( \
6891- icaldurationtype_normalize( \
6892- icaldurationtype_from_string(input) \
6893- ) \
6894- ) \
6895- )
6889+ str_is("normalize(" input ")=" want, want, \
6890+ icaldurationtype_as_ical_string( \
6891+ icaldurationtype_normalize( \
6892+ icaldurationtype_from_string(input))))
68966893
68976894 assert_normalized_duration ("PT0S" , "PT0S" );
68986895 assert_normalized_duration ("PT59S" , "PT59S" );
@@ -6974,26 +6971,26 @@ static void test_icalcomponent_remove_property_by_kind(void)
69746971
69756972static void test_icalcomponent_get_duration (void )
69766973{
6977- #define assert_icalcomponent_get_duration (desc , want , ctlines ) \
6978- { \
6979- const char *str = \
6980- "BEGIN:VCALENDAR\r\n" \
6981- "VERSION:2.0\r\n" \
6982- "PRODID:-//foo/bar//v1.0//EN\r\n" \
6983- "BEGIN:VEVENT\r\n" \
6984- "UID:4dba9882-e4a2-43e6-9944-b93e726fa6d3\r\n" \
6985- "DTSTAMP:20060102T030405Z\r\n" \
6986- ctlines \
6987- "END:VEVENT\r\n" \
6988- "END:VCALENDAR\r\n"; \
6989- icalcomponent *ical = icalcomponent_new_from_string(str); \
6990- ok("Parsed iCalendar object", (ical != NULL)); \
6991- icalcomponent *comp = icalcomponent_get_first_real_component(ical); \
6974+ #define assert_icalcomponent_get_duration (desc , want , ctlines ) \
6975+ { \
6976+ const char *str = \
6977+ "BEGIN:VCALENDAR\r\n" \
6978+ "VERSION:2.0\r\n" \
6979+ "PRODID:-//foo/bar//v1.0//EN\r\n" \
6980+ "BEGIN:VEVENT\r\n" \
6981+ "UID:4dba9882-e4a2-43e6-9944-b93e726fa6d3\r\n" \
6982+ "DTSTAMP:20060102T030405Z\r\n" ctlines \
6983+ "END:VEVENT\r\n" \
6984+ "END:VCALENDAR\r\n"; \
6985+ icalcomponent *ical = icalcomponent_new_from_string(str); \
6986+ ok("Parsed iCalendar object", (ical != NULL)); \
6987+ icalcomponent *comp = icalcomponent_get_first_real_component(ical); \
69926988 ok("Parsed VEVENT component", icalcomponent_isa(comp) == ICAL_VEVENT_COMPONENT); \
6993- str_is(desc, \
6994- icaldurationtype_as_ical_string(\
6995- icalcomponent_get_duration(comp)), want); \
6996- icalcomponent_free(ical); \
6989+ str_is(desc, \
6990+ icaldurationtype_as_ical_string( \
6991+ icalcomponent_get_duration(comp)), \
6992+ want); \
6993+ icalcomponent_free(ical); \
69976994 }
69986995
69996996 assert_icalcomponent_get_duration (
@@ -7058,7 +7055,6 @@ static void test_icalcomponent_get_duration(void)
70587055#undef assert_icalcomponent_get_duration
70597056}
70607057
7061-
70627058int main (int argc , const char * argv [])
70637059{
70647060#if !defined(HAVE_UNISTD_H )
0 commit comments