Page MenuHomePhabricator

Fix an RRULE issue with month days at the end of the month
ClosedPublic

Authored by epriestley on Sep 27 2016, 10:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 25, 2:06 PM
Unknown Object (File)
Sat, Jan 25, 2:06 PM
Unknown Object (File)
Sat, Jan 25, 2:06 PM
Unknown Object (File)
Fri, Jan 24, 7:56 PM
Unknown Object (File)
Thu, Jan 23, 8:31 PM
Unknown Object (File)
Thu, Jan 23, 5:55 PM
Unknown Object (File)
Wed, Jan 22, 4:07 AM
Unknown Object (File)
Tue, Jan 21, 9:19 AM
Subscribers
None

Details

Summary

Ref T10747. I'm porting unit tests from other implementations until I hit one that fails.

The "yearly event on Feb 29th" test failed because we assumed every month had a 29th. Instead, test if the current month has a 29th.

We were also using cursorX instead of stateX in a couple places. They often have the same value, but stateX is the correct value when they differ.

Test Plan

Unit tests now pass.

Diff Detail

Repository
rPHU libphutil
Branch
cal3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 13866
Build 17940: Run Core Tests
Build 17939: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Fix an RRULE issue with month days at the end of the month.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Sep 27 2016, 10:37 PM
This revision was automatically updated to reflect the committed changes.