-
Notifications
You must be signed in to change notification settings - Fork 514
Temporal: Split up old Chinese and Dangi calendar tests; remove out-of-normal-range dates #4667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
10f5b2f to
9e53d64
Compare
ptomato
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get all the way through it but here are some comments to go on.
ptomato
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd recommend one of two things for this PR:
- Either leave all the tests in their original files and just delete the tests that invoke ill-defined years, and split them up in one or more follow-up PRs;
- Or we should expand the split-up tests in this PR to get better coverage (e.g., testing more than one year in
inLeapYearandmonthsInYear, etc.)
staging/sm/Temporal/PlainMonthDay/from-chinese-leap-month-common.js seems to invoke invalid Chinese years too.
test/intl402/Temporal/PlainDate/prototype/inLeapYear/chinese-calendar-dates.js
Outdated
Show resolved
Hide resolved
test/intl402/Temporal/PlainDate/prototype/inLeapYear/dangi-calendar-dates.js
Outdated
Show resolved
Hide resolved
test/intl402/Temporal/PlainYearMonth/from/reference-day-chinese.js
Outdated
Show resolved
Hide resolved
Done in da4c282 |
e37508a to
6f97426
Compare
I've tried to expand some of the tests to get better coverage. The PR is getting pretty big, so I'd rather do any further improvements in coverage in a future PR. |
…f-normal-range dates
… subtract/basic-chinese (and same for dangi-calendar)
…e, and PlainYearMonth
e01527e to
b63db5c
Compare
Closes #4614