@@ -0,0 +1,1333 @@
+package biweekly.issues;%0D%0A%0D%0Aimport static org.junit.Assert.assertEquals;%0D%0A%0D%0Aimport java.util.Date;%0D%0Aimport java.util.TimeZone;%0D%0A%0D%0Aimport org.junit.Test;%0D%0A%0D%0Aimport biweekly.Biweekly;%0D%0Aimport biweekly.ICalendar;%0D%0Aimport biweekly.util.com.google.ical.compat.javautil.DateIterator;%0D%0A%0D%0A/**%0D%0A * @author Michael Angstadt%0D%0A * @see %22https://github.com/mangstadt/biweekly/issues/117%22%0D%0A */%0D%0Apublic class Issue117 %7B%0D%0A%09@Test%0D%0A%09public void test() %7B%0D%0A%09%09ICalendar ical1 = ical(%22RRULE:FREQ=WEEKLY;INTERVAL=1;WKST=SU;BYDAY=TH,FR%22);%0D%0A%09%09ICalendar ical2 = ical(%22RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TH,FR;WKST=SU%22);%0D%0A%09%09%0D%0A%09%09TimeZone tz = TimeZone.getDefault();%0D%0A%09%09DateIterator it1 = ical1.getEvents().get(0).getDateIterator(tz);%0D%0A%09%09DateIterator it2 = ical2.getEvents().get(0).getDateIterator(tz);%0D%0A%09%09%0D%0A%09%09for (int i = 0; i %3C 20; i++) %7B%0D%0A%09%09%09Date d1 = it1.next();%0D%0A%09%09%09Date d2 = it2.next();%0D%0A%09%09%09assertEquals(d1, d2);%0D%0A%09%09%09System.out.println(d1);%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%09%0D%0A%09private ICalendar ical(String rruleString) %7B%0D%0A%09%09//@formatter:off%0D%0A%09%09String str =%0D%0A%09%09%22BEGIN:VCALENDAR%5Cr%5Cn%22 +%0D%0A%09%09%22VERSION:2.0%5Cr%5Cn%22 +%0D%0A%09%09%22PRODID:-//Microsoft Corporation//Outlook 14.0 MIMEDIR//EN%5Cr%5Cn%22 +%0D%0A%09%09%22BEGIN:VEVENT%5Cr%5Cn%22 +%0D%0A%09%09%22DTSTART:20220606T110000Z%5Cr%5Cn%22 +%0D%0A%09%09rruleString + %22%5Cr%5Cn%22 +%0D%0A%09%09%22END:VEVENT%5Cr%5Cn%22 +%0D%0A%09%09%22END:VCALENDAR%5Cr%5Cn%22;%0D%0A%09%09//@formatter:on%0D%0A%09%09%0D%0A%09%09return Biweekly.parse(str).first();%0D%0A%09%7D%0D%0A%7D%0D%0A

Create unit test for Issue 117