Integrated: 8318613: ChoiceFormat patterns are not well tested

Justin Lu jlu at openjdk.org
Wed Oct 25 17:15:40 UTC 2023


On Mon, 23 Oct 2023 21:15:44 GMT, Justin Lu <jlu at openjdk.org> wrote:

> Please review this PR which adds a test for ChoiceFormat intended to test a wide range of ChoiceFormat patterns.
> 
> The existing test _Bug4387255_ only tests a singular basic pattern and does not test for incorrect patterns either.
> 
> The new test checks 
> 
> - both correct and incorrect patterns
> - the behavior of incorrect patterns that either throw an IllegalArgumentException or discard the incorrect portion
> - the case of formatting with an empty pattern (that leads to empty limits and formats)

This pull request has now been integrated.

Changeset: 10427c02
Author:    Justin Lu <jlu at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/10427c023a142a24db3c2492977a7233a1afc25d
Stats:     153 lines in 1 file changed: 153 ins; 0 del; 0 mod

8318613: ChoiceFormat patterns are not well tested

Reviewed-by: naoto

-------------

PR: https://git.openjdk.org/jdk/pull/16324


More information about the core-libs-dev mailing list