예제 #1
0
 /**
  * @bug 4135752 This would be better tested by the LocaleDataTest. Will move it when I get the
  *     LocaleDataTest working again.
  */
 public void TestThaiCurrencyFormat() {
   DecimalFormat thaiCurrency =
       (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale("th", "TH"));
   if (!thaiCurrency.getPositivePrefix().equals("\u0e3f"))
     errln(
         "Thai currency prefix wrong: expected \"\u0e3f\", got \""
             + thaiCurrency.getPositivePrefix()
             + "\"");
   if (!thaiCurrency.getPositiveSuffix().equals(""))
     errln(
         "Thai currency suffix wrong: expected \"\", got \""
             + thaiCurrency.getPositiveSuffix()
             + "\"");
 }