Skip to content

Commit

Permalink
8329354: java/text/Format/MessageFormat/CompactSubFormats.java fails
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonFool committed Mar 30, 2024
1 parent 37c2279 commit 244cff0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public void applyPatternTest() {
public void recognizedCompactStylesTest() {
// An exception won't be thrown since 'compact_regular' will be interpreted as a
// subformatPattern.
assertEquals(new DecimalFormat("compact_regular"),
DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.US);
assertEquals(new DecimalFormat("compact_regular", symbols),
new MessageFormat("{0,number,compact_regular}", Locale.US).getFormatsByArgumentIndex()[0]);
}

Expand Down

0 comments on commit 244cff0

Please sign in to comment.