You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure that we have test coverage of reversibility with DST changes involved.
Given diffUntil = earlier.until(later, { largestUnit: 'days' }) and diffSince = later.since(earlier, { largestUnit: 'days' }), we need to test cases where:
diffUntil !== diffSince
earlier.add(diffUntil) == later
later.subtract(diffUntil) != earlier
later.subtract(diffSince) == earlier
earlier.add(diffSince) != later
The text was updated successfully, but these errors were encountered:
FWIW, if I remember correctly there are some of these tests in the ZDT demitasse tests. So before writing new tests, we may want to look through the existing ZDT and staging tests to see if there's any existing tests that can be used. I was going to add this comment to tc39/test262#3002 but wasn't sure where to put it!
Make sure that we have test coverage of reversibility with DST changes involved.
Given
diffUntil = earlier.until(later, { largestUnit: 'days' })
anddiffSince = later.since(earlier, { largestUnit: 'days' })
, we need to test cases where:diffUntil !== diffSince
earlier.add(diffUntil) == later
later.subtract(diffUntil) != earlier
later.subtract(diffSince) == earlier
earlier.add(diffSince) != later
The text was updated successfully, but these errors were encountered: