Home | History | Annotate | Download | only in intltest

Lines Matching defs:NUM

781     Number num = df.parse(str, new ParsePosition(0));
782 if (num.doubleValue() != -9.223372036854776E16)
1337 Formattable num;
1338 fmt->parse(UnicodeString("abc3"), num, status);
1340 errln(UnicodeString("Bug 4052223 failed : can't parse string \"a\". Got ") /*+ num*/);
1400 double num = 1234.5;
1401 fmt->format(num, formatted, field);
1428 Formattable num;
1430 df->parse(text, num, pp);
1436 temp = df->format(num.getDouble(), temp, pos);
1437 //if (!num.toString().equals("1.222"))
1439 //errln("\"" + text + "\" is parsed as " + num);
1443 df->parse(text, num, pp);
1445 temp = df->format(num.getDouble(), temp, pos);
1446 //if (!num.toString().equals("1.222"))
1507 Formattable num;
1508 df->parse(text, num, pos1);
1509 if (pos1 == ParsePosition(0)/*num != null*/) {
1510 errln(UnicodeString("Test Failed: \"") + text + "\" is parsed as " /*+ num*/);
1515 df->parse(UnicodeString("$"), num, pos2);
1516 if (pos2 == ParsePosition(0) /*num != null*/){
1517 errln(UnicodeString("Test Failed: \"$\" is parsed as ") /*+ num*/);
1946 UnicodeString("#.00 'num''ber'"), UnicodeString("''#.00''")
1957 Formattable num;
1959 nf->parse(out, num, pp);
1960 double val = num.getDouble();
1969 nf->parse(out2, num, pp);
1970 double val2 = num.getDouble();
2179 Formattable num;
2180 fmt->parse(s, num, status);
2182 if (num.getType() == Formattable::kDouble &&
2183 _u_abs(num.getDouble() - a) / a < 0.01) { // RT within 1%
2185 toString(num) + " ok");
2188 toString(num) + " FAIL");
2506 Formattable num;
2507 fmt->parse(str, num, status);
2509 if (num.getType() != Formattable::kLong &&
2510 num.getType() != Formattable::kDouble) {
2512 toString(num));
2514 double d = num.getType() == Formattable::kDouble ?
2515 num.getDouble() : (double) num.getLong();
2519 ") => " + toString(num));
2588 const double NUM[] = { -2.5, -1.5, -0.5, 0.5, 1.5, 2.5, 3.5, 4.5 };
2590 int32_t N = (int32_t)(sizeof(NUM) / sizeof(NUM[0]));
2596 fmt.format(NUM[i], str, pos);
2598 logln(UnicodeString("Ok ") + NUM[i] + " x 0. = " + str);
2600 errln(UnicodeString("FAIL ") + NUM[i] + " x 0. = " + str +
3025 char *num = new char[NUMSIZE];
3027 num[i] = '0' + (i+1) % 10;
3029 num[NUMSIZE-3] = '.';
3030 num[NUMSIZE-1] = 0;
3034 fmtable.setDecimalNumber(num, status);
3044 UnicodeString expected(num, -1, US_INV);
3046 delete [] num;