icu icon indicating copy to clipboard operation
icu copied to clipboard

ICU-20926 Adding test to verify fallback rule of DateIntervalFormat

Open caiolima opened this issue 4 years ago • 4 comments

Checklist
  • [x] Issue filed: https://unicode-org.atlassian.net/browse/ICU-20926
  • [x] Updated PR title and link in previous line to include Issue number
  • [x] Issue accepted
  • [x] Tests included
  • [ ] Documentation is changed or added

Cc @sffc

I added tests with some skeletons, however I was not able to find the skeleton that would result in the same pattern we get from DateFormate::createTimeInstance (DateFormat::kFull, DateFormat::kFull, locale);. Considering the test as it is, it is passing. After I get green light for it, I'll add Java version of this test.

caiolima avatar Apr 09 '20 18:04 caiolima

Is the Java test already have this? If not, could you also add the same test to ICU4J.

FrankYFTang avatar Apr 15 '20 18:04 FrankYFTang

Good, this is the first half of what the ticket is requesting that we test. The second half:

We should add a test for this behavior: UFIELD_CATEGORY_DATE_INTERVAL_SPAN should be present in the UFormattedValue if and only if a date interval was formatted. If the field is not present, then that should imply that no date interval was formatted.

Can you check for UFIELD_CATEGORY_DATE_INTERVAL_SPAN and test that it is present if and only if a date interval was formatted?

sffc avatar Apr 15 '20 22:04 sffc

@caiolima Do you have plans to respond to the feedback on this PR?

sffc avatar Mar 01 '21 07:03 sffc

@caiolima Do you have plans to respond to the feedback on this PR?

Oops, I feel this got lost in my notification list for quite a while. I'm quite busy on other tasks and I don't think will be able to work there in the near term.

caiolima avatar Mar 01 '21 15:03 caiolima

ping

markusicu avatar Oct 27 '22 16:10 markusicu

I updated the branch and responded to the feedback in https://github.com/unicode-org/icu/pull/2245.

sffc avatar Oct 29 '22 01:10 sffc