-
Notifications
You must be signed in to change notification settings - Fork 8
Description
#69 may have introduced an inadvertent observable change, which needs to be reverted.
The replaced prose read:
Add (without constraining) as many years as possible to one, in the direction from one to two, without surpassing two. "Surpassing" here (and in all steps below) means to compare years numerically, then month codes lexicographically, then days numerically; if any of them exceed two in the direction from one to two, then two is surpassed.
Taking the Hebrew calendar dates one = 1 Adar I 5784 (5784-M05L-1, ISO 2024-02-10) and two = 1 Adar 5783 (5783-M06-1, ISO 2023-02-22) the current NonISODateSurpasses algorithm returns false for a candidateYears of -1. However the above prose would seem to suggest it should return true.
h/t @Manishearth