Skip to content

Add more tests around TypeError vs RangeError in Date::try_from_fields #7083

@sffc

Description

@sffc

Temporal requires a specific ordering of TypeError and RangeError. We should make sure we return the errors in the same order in Date::try_from_fields, where DateError::NotEnoughFields is a TypeError and DateError::Range is a RangeError.

I had asked for this to be included in https://github.com/unicode-org/icu4x/pull/7062/files#r2418252951 but it wasn't added.

@Manishearth

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-calendarComponent: Calendarsmilestone-non-blockingThese issues are in a milestone, but do not block the milestone (and can be removed if necessary)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions