Skip to content

Implement to_string functionality and methods for Duration, PlainYearMonth, and PlainMonthDay #164

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

Merged
merged 7 commits into from
Jan 18, 2025

Conversation

nekevss
Copy link
Member

@nekevss nekevss commented Jan 16, 2025

This PR implements the remaining functionality needed for the final to_string methods on Duration, PlainYearMonth, and PlainMonthDay and also implements the methods on their intended structs.

There is also an early bump of the ixdtf crate to the git revision to begin taking advantage of recent changes.

Each of these have been implemented and tested in Boa locally.

PlainYearMonth - 100%
PlainMonthDay - 100%
Duration - 100%

For reference, the 4 final failing tests in Duration that were fixed with subsequent bug fix commits to this PR were the below:

/home/nekevss/Projects/boa/test262/test/built-ins/Temporal/Duration/prototype/toString/total-of-duration-time-units-out-of-range.js: Failed
/home/nekevss/Projects/boa/test262/test/built-ins/Temporal/Duration/prototype/toString/max-value.js: Failed
/home/nekevss/Projects/boa/test262/test/built-ins/Temporal/Duration/prototype/toString/no-precision-loss.js: Failed
/home/nekevss/Projects/boa/test262/test/built-ins/Temporal/Duration/prototype/toString/negative-components.js: Failed

@nekevss nekevss force-pushed the duration-md-ym-to-string branch from 1562f63 to f4d8517 Compare January 16, 2025 07:02
@nekevss nekevss added the C-enhancement New feature or request label Jan 16, 2025
@nekevss nekevss force-pushed the duration-md-ym-to-string branch from a535468 to 9d46d10 Compare January 17, 2025 14:55
Copy link
Member

@raskad raskad left a comment

Choose a reason for hiding this comment

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

Looks good overall

@nekevss nekevss merged commit c614682 into main Jan 18, 2025
6 checks passed
@nekevss nekevss deleted the duration-md-ym-to-string branch January 18, 2025 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants