Searched refs:roundingTest (Results 1 - 10 of 10) sorted by relevance

/external/icu/icu4c/source/test/cintltst/
H A Dcnmdptst.h56 static void roundingTest(UNumberFormat*, double, int32_t, const char*);
H A Dcnmdptst.c626 roundingTest(nnf, 0.00159999, 4, "0.0016");
627 roundingTest(nnf, 0.00995, 4, "0.01");
629 roundingTest(nnf, 12.3995, 3, "12.4");
631 roundingTest(nnf, 12.4999, 0, "12");
632 roundingTest(nnf, - 19.5, 0, "-20");
640 static void roundingTest(UNumberFormat* nf, double x, int32_t maxFractionDigits, const char* expected) function
/external/icu/icu4c/source/test/intltest/
H A Dnumrgts.h56 void roundingTest(DecimalFormat *df, double x, UnicodeString& expected);
H A Dnumrgts.cpp1183 roundingTest(df, 12.35, s);
1184 roundingTest(df, 12.45, s);
1186 roundingTest(df, 12.452,s);
1188 roundingTest(df, 12.55, s);
1189 roundingTest(df, 12.65, s);
1191 roundingTest(df, 12.652,s);
1193 roundingTest(df, 12.75, s);
1194 roundingTest(df, 12.752,s);
1195 roundingTest(df, 12.85, s);
1197 roundingTest(d
1206 void NumberFormatRegressionTest::roundingTest(DecimalFormat *df, double x, UnicodeString& expected) function in class:NumberFormatRegressionTest
[all...]
H A Dnumfmtst.h324 void roundingTest(NumberFormat& nf, double x, int32_t maxFractionDigits, const char* expected);
H A Dnumfmtst.cpp1585 roundingTest(*nf, 0.00159999, 4, "0.0016");
1586 roundingTest(*nf, 0.00995, 4, "0.01");
1588 roundingTest(*nf, 12.3995, 3, "12.4");
1590 roundingTest(*nf, 12.4999, 0, "12");
1591 roundingTest(*nf, - 19.5, 0, "-20");
1697 NumberFormatTest::roundingTest(NumberFormat& nf, double x, int32_t maxFractionDigits, const char* expected) function in class:NumberFormatTest
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
H A DNumberRegressionTests.java698 roundingTest(df, 12.35, "12.4");
699 roundingTest(df, 12.45, "12.4");
700 roundingTest(df, 12.452,"12.5");
701 roundingTest(df, 12.55, "12.6");
702 roundingTest(df, 12.65, "12.6");
703 roundingTest(df, 12.652,"12.7");
704 roundingTest(df, 12.75, "12.8");
705 roundingTest(df, 12.752,"12.8");
706 roundingTest(df, 12.85, "12.8");
707 roundingTest(d
712 void roundingTest(DecimalFormat df, double x, String expected) method in class:NumberRegressionTests
[all...]
H A DNumberFormatTest.java1366 roundingTest(nf, 0.00159999, 4, "0.0016");
1367 roundingTest(nf, 0.00995, 4, "0.01");
1369 roundingTest(nf, 12.3995, 3, "12.4");
1371 roundingTest(nf, 12.4999, 0, "12");
1372 roundingTest(nf, - 19.5, 0, "-20");
1434 private void roundingTest(NumberFormat nf, double x, int maxFractionDigits, final String expected) { method in class:NumberFormatTest
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DNumberRegressionTests.java697 roundingTest(df, 12.35, "12.4");
698 roundingTest(df, 12.45, "12.4");
699 roundingTest(df, 12.452,"12.5");
700 roundingTest(df, 12.55, "12.6");
701 roundingTest(df, 12.65, "12.6");
702 roundingTest(df, 12.652,"12.7");
703 roundingTest(df, 12.75, "12.8");
704 roundingTest(df, 12.752,"12.8");
705 roundingTest(df, 12.85, "12.8");
706 roundingTest(d
711 void roundingTest(DecimalFormat df, double x, String expected) method in class:NumberRegressionTests
[all...]
H A DNumberFormatTest.java1365 roundingTest(nf, 0.00159999, 4, "0.0016");
1366 roundingTest(nf, 0.00995, 4, "0.01");
1368 roundingTest(nf, 12.3995, 3, "12.4");
1370 roundingTest(nf, 12.4999, 0, "12");
1371 roundingTest(nf, - 19.5, 0, "-20");
1433 private void roundingTest(NumberFormat nf, double x, int maxFractionDigits, final String expected) { method in class:NumberFormatTest

Completed in 712 milliseconds