This adds tests for computing the difference between two dates in the
three Orthodox calendars (coptic, ethioaa, ethiopic) specifically in
and across the epagomenal month (M13).
This adds tests for constraining the day when changing the month code
using the with() method in the three Orthodox calendars (coptic,
ethioaa, ethiopic). Adding years is already covered in the
leap-year-*.js tests. The only time that the days need to be
constrained to the end of the month is in the epagomenal month
(M13), since all the other months always have 30 days.
This adds tests for constraining the day when adding months in the three
Orthodox calendars (coptic, ethioaa, ethiopic). Adding years is already
covered in the leap-year-*.js tests. The only time that the days need to
be constrained to the end of the month is in the epagomenal month (M13),
since all the other months always have 30 days.
Similar to the previous commit, this adds tests for adjusting the year
number using the with() method on leap day (M13-06) and constraining to
M13-05 in common years for the three Orthodox calendars (coptic,
ethioaa, ethiopic).
This adds tests for addition and subtraction on leap day (M13-06) and
constraining to M13-05 in common years for the three Orthodox calendars
(coptic, ethioaa, ethiopic).
Tests for year and month arithmetic around constraining the day to the
end of a 30 or 31-day month in leap and common years, in the
Persian calendar, for add(), subtract(), and with().
This adds tests for constraining the day when adjusting the year or
months using the with() method in the two East Asian lunisolar
calendars (chinese, dangi). Tests jumping from a long leap month to a
short leap month in another year, jumping from a long month to the same
month in a year where it is short, and jumping from a long month to all
other months in the same year (long or short).
This adds tests for constraining the day when adding years and months in
the two East Asian lunisolar calendars (chinese, dangi). Tests jumping
from a long leap month to a short leap month in another year, jumping
from a long month to the same month in a year where it is short, and
jumping from a long month to all other months in the same year (long or
short).
These tests check that the calendar does not skip days from
Gregorian dates 1582-10-04 to 1582-10-14; for the Buddhist calendar,
the tests also check that the calendar does not skip months in Gregorian
year 1941.
Add tests for order of operations on property bag reads for
the following methods:
* PlainDate.prototype.toPlainDateTime
* PlainDateTime.prototype.withPlainTime
* ZonedDateTime.prototype.getTimeZoneTransition
Similar to the previous commit, this adds tests for constraining the day
to the end of the month, but using the with() method. For the four
ISO8601-like calendars (buddhist, gregory, japanese, roc).
This adds tests similar to the ISO8601 calendar ones in test/built-ins/
for constraining the day to the end of the month when adding a number
of months, for the four ISO8601-like calendars (buddhist, gregory,
japanese, roc).
Similar to https://github.com/tc39/test262/pull/4700 but this is for an
observational Hijri calendar, not a tabular one. Any month may have
either 29 or 30 days in any year. So we additionally test adding or
subtracting 1 year from day 30 of a month, and landing in a year where
that month has 29 days.
Observational month lengths are provided in a comment for convenience.
Tests for year and month arithmetic around constraining the day to the
end of a 29 or 30 day month in leap and common years, in the
islamic-tbla calendar, for add(), subtract(), and with().
(This is a tabular calendar. Leap years and month lengths are the same
as in the islamic-civil calendar in the previous commit. The epoch day
is different which doesn't make a difference to the result of these
tests, so they are nearly identical to the islamic-civil tests in the
previous commit.)
Tests for year and month arithmetic around constraining the day to the
end of a 29 or 30 day month in leap and common years, in the
islamic-civil calendar, for add(), subtract(), and with().
(This is a tabular calendar, so leap and common years follow a
mathematical pattern. Odd months have 30 days and even months have 29,
except the last month which has 30 days in leap years.)
These end-of-month tests were moved in from staging in
https://github.com/tc39/test262/pull/4667. Split them out into their own
files and expand to cover PlainDateTime and ZonedDateTime as well.
The test data included a case for year 1987, monthCode M07L.
This was incorrect; the leap month for 1987 was M06L.
This is due to a bug in ICU4C. These tests will have to be
expected-to-fail in ICU4C-based implementations until the underlying bug
is fixed. See https://github.com/tc39/test262/issues/4704