mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-14 15:39:45 +00:00
8329354: java/text/Format/MessageFormat/CompactSubFormats.java fails
Reviewed-by: jlu, naoto
This commit is contained in:
parent
c2979c150b
commit
ecd2b7112a
@ -64,7 +64,8 @@ public class CompactSubFormats {
|
||||
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]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user