< prev index next >
test/jdk/java/util/Locale/LocaleProviders.java
Print this page
@@ -235,14 +235,18 @@
}
}
}
static void bug8027289Test(String expectedCodePoint) {
+ if (System.getProperty("os.name").startsWith("Windows")) {
char[] expectedSymbol = Character.toChars(Integer.valueOf(expectedCodePoint, 16));
NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.CHINA);
char formatted = nf.format(7000).charAt(0);
System.out.println("returned: " + formatted + ", expected: " + expectedSymbol[0]);
if (formatted != expectedSymbol[0]) {
- throw new RuntimeException("Unexpected Chinese currency symbol. returned: " + formatted + ", expected: " + expectedSymbol[0]);
+ throw new RuntimeException(
+ "Unexpected Chinese currency symbol. returned: "
+ + formatted + ", expected: " + expectedSymbol[0]);
+ }
}
}
}
< prev index next >