Skip to content
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

Some extra test coverage for Temporal #3944

Merged
merged 4 commits into from
Oct 18, 2023
Merged

Conversation

ptomato
Copy link
Contributor

@ptomato ptomato commented Oct 11, 2023

Here is some extra test coverage for Temporal for gaps that were highlighted by some editorial issues that @anba reported.

None of this reflects any changed behaviour, just coverage gaps.

See tc39/proposal-temporal#2708.

@ptomato ptomato force-pushed the temporal-editorial branch from 315b4df to 4043559 Compare October 18, 2023 14:49
@ptomato ptomato requested a review from Ms2ger October 18, 2023 14:50
In PlainYearMonth arithmetic, we need to find the end of the month when
adding a negative duration or subtracting a positive one. This end of the
month can be out of range.

Test case based on one provided by Anba. See issue:
tc39/proposal-temporal#2700
…ants

In the AO DisambiguatePossibleInstants, a PlainDateTime instance is passed
to user code. This instance should have the built-in ISO 8601 calendar.
Here are some tests that ensure it does.

See tc39/proposal-temporal#2671.
This adds coverage for each possible outcome of compare(), where each unit
is greater, lesser, or equal.
@ptomato ptomato force-pushed the temporal-editorial branch from 4043559 to 6d92079 Compare October 18, 2023 15:38
@ptomato ptomato merged commit 96bc38f into tc39:main Oct 18, 2023
@ptomato ptomato deleted the temporal-editorial branch October 18, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants