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

Add tests for intl402 formatRange(ToParts) to check the behavior when startDate is the same as endDate. #2925

Merged
merged 2 commits into from
Jan 4, 2021

Conversation

fabalbon
Copy link
Member

Add tests for Intl.DateTimeFormat formatRange(ToParts) to check the behavior when startDate is the same as endDate.
This is based on the discussion and conclusion on tc39/proposal-intl-DateTimeFormat-formatRange#19.

@@ -0,0 +1,42 @@
// Copyright 2019 Google Inc. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely this is just copy pasta?

Copy link
Member Author

@fabalbon fabalbon Jan 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I fixed the year. Thanks

@@ -0,0 +1,57 @@
// Copyright 2019 Google Inc. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Member Author

@fabalbon fabalbon Jan 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I fixed the year. Thanks

…formatRangeToParts/date-same-returns-single-date.js
@rwaldron rwaldron merged commit 6cf3433 into tc39:main Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants