ICU-22868 Test Region::getInstance / getType problems
Add tests to show the problem of Region.getInstance() and getType for some undefined region code and deprecated code.
Checklist
- [X] Required: Issue filed: https://unicode-org.atlassian.net/browse/ICU-22868
- [X] Required: The PR title must be prefixed with a JIRA Issue number.
- [X] Required: The PR description must include the link to the Jira Issue, for example by completing the URL in the first checklist item
- [X] Required: Each commit message must be prefixed with a JIRA Issue number.
- [ ] Issue accepted (done by Technical Committee after discussion)
- [X] Tests included, if applicable
- [ ] API docs and/or User Guide docs changed or added, if applicable
Mark / Rich- this PR is not yet ready to review for check in. Just want to show you that the pre-existing ICU API is buggy so I cannot use them to implement https://github.com/unicode-org/icu/pull/3098 to solve ICU-22854 AS IS.
Notice: the branch changed across the force-push!
- icu4c/source/test/intltest/regiontst.cpp is different
- icu4c/source/test/intltest/regiontst.h is different
- icu4j/main/core/src/test/java/com/ibm/icu/dev/test/util/RegionTest.java is different
~ Your Friendly Jira-GitHub PR Checker Bot
This PR show a misunderstanding of the Region API. The Region API use suppliemental data repalce the region to the alias and my origional test does not consider that. Therefore, this bug is invalid and the tests in this PR is invalid.