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)
Sun, Dec 15, 6:05 PM
Unknown Object (File)
Sat, Dec 14, 9:07 PM
Unknown Object (File)
Fri, Dec 13, 12:23 AM
Unknown Object (File)
Wed, Dec 11, 5:47 AM
Unknown Object (File)
Mon, Dec 9, 11:34 AM
Unknown Object (File)
Sun, Dec 8, 2:30 PM
Unknown Object (File)
Thu, Nov 28, 5:27 PM
Unknown Object (File)
Wed, Nov 27, 11:35 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.