• Home
  • Raw
  • Download

Lines Matching full:fmt

95     NumberFormat *fmt = NULL;  in start()  local
99 fmt = NumberFormat::createInstance(status); in start()
101 test(fmt); in start()
103 delete fmt; in start()
105 fmt = NumberFormat::createCurrencyInstance(status); in start()
107 test(fmt); in start()
109 delete fmt; in start()
111 fmt = NumberFormat::createPercentInstance(status); in start()
113 test(fmt); in start()
115 delete fmt; in start()
129 fmt = NumberFormat::createInstance(loc[i], status); in start()
131 test(fmt); in start()
132 delete fmt; in start()
134 fmt = NumberFormat::createCurrencyInstance(loc[i], status); in start()
136 test(fmt); in start()
137 delete fmt; in start()
139 fmt = NumberFormat::createPercentInstance(loc[i], status); in start()
141 test(fmt); in start()
142 delete fmt; in start()
150 NumberFormatRoundTripTest::test(NumberFormat *fmt) in test() argument
153 test(fmt, uprv_getNaN()); in test()
154 test(fmt, uprv_getInfinity()); in test()
155 test(fmt, -uprv_getInfinity()); in test()
158 test(fmt, (int32_t)500); in test()
159 test(fmt, (int32_t)0); in test()
160 test(fmt, (int32_t)-0); in test()
161 test(fmt, 0.0); in test()
163 test(fmt, negZero); in test()
164 test(fmt, 9223372036854775808.0); in test()
165 test(fmt, -9223372036854775809.0); in test()
168 test(fmt, randomDouble(1)); in test()
169 test(fmt, randomDouble(10000)); in test()
170 test(fmt, uprv_floor((randomDouble(10000)))); in test()
171 test(fmt, randomDouble(1e50)); in test()
172 test(fmt, randomDouble(1e-50)); in test()
174 test(fmt, randomDouble(1e100)); in test()
176 test(fmt, randomDouble(1e75)); in test()
187 //if(fmt->getMultipler() == 1) in test()
188 DecimalFormat *df = dynamic_cast<DecimalFormat *>(fmt); in test()
193 test(fmt, randomDouble(DBL_MAX/2.0) / df->getMultiplier()); in test()
195 test(fmt, randomDouble(1e75) / df->getMultiplier()); in test()
197 test(fmt, randomDouble(1e65) / df->getMultiplier()); in test()
203 test(fmt, randomDouble(1e-292)); in test()
204 test(fmt, randomDouble(1e-100)); in test()
208 test(fmt, randomDouble(1e-78)); in test()
209 test(fmt, randomDouble(1e-78)); in test()
214 test(fmt, randomDouble(DBL_MIN)); /* Usually 2.2250738585072014e-308 */ in test()
215 test(fmt, randomDouble(1e-100)); in test()
221 NumberFormatRoundTripTest::test(NumberFormat *fmt, double value) in test() argument
223 test(fmt, Formattable(value)); in test()
227 NumberFormatRoundTripTest::test(NumberFormat *fmt, int32_t value) in test() argument
229 test(fmt, Formattable(value)); in test()
233 NumberFormatRoundTripTest::test(NumberFormat *fmt, const Formattable& value) in test() argument
235 fmt->setMaximumFractionDigits(999); in test()
236 DecimalFormat *df = dynamic_cast<DecimalFormat *>(fmt); in test()
243 s = fmt->format(value.getDouble(), s); in test()
245 s = fmt->format(value.getLong(), s); in test()
252 fmt->parse(s, n, status); in test()
255 const char* localeID = fmt->getLocaleID(ULOC_ACTUAL_LOCALE, infoStatus); in test()
257 …errln(UnicodeString("FAIL: fmt->parse failed, locale: ") + localeID + ", error: " + u_errorName(st… in test()
263 s2 = fmt->format(n.getDouble(), s2); in test()
265 s2 = fmt->format(n.getLong(), s2); in test()