Home
last modified time | relevance | path

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

/third_party/icu/icu4c/source/test/cintltst/
H A Dcnmdptst.h56 static void roundingTest(UNumberFormat*, double, int32_t, const char*);
H A Dcnmdptst.c561 roundingTest(nnf, 0.00159999, 4, "0.0016"); in TestRounding487()
562 roundingTest(nnf, 0.00995, 4, "0.01"); in TestRounding487()
564 roundingTest(nnf, 12.3995, 3, "12.4"); in TestRounding487()
566 roundingTest(nnf, 12.4999, 0, "12"); in TestRounding487()
567 roundingTest(nnf, - 19.5, 0, "-20"); in TestRounding487()
575 static void roundingTest(UNumberFormat* nf, double x, int32_t maxFractionDigits, const char* expected) in roundingTest() function
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DNumberRegressionTests.java701 roundingTest(df, 12.35, "12.4"); in Test4093610()
702 roundingTest(df, 12.45, "12.4"); in Test4093610()
703 roundingTest(df, 12.452,"12.5"); in Test4093610()
704 roundingTest(df, 12.55, "12.6"); in Test4093610()
705 roundingTest(df, 12.65, "12.6"); in Test4093610()
706 roundingTest(df, 12.652,"12.7"); in Test4093610()
707 roundingTest(df, 12.75, "12.8"); in Test4093610()
708 roundingTest(df, 12.752,"12.8"); in Test4093610()
709 roundingTest(df, 12.85, "12.8"); in Test4093610()
710 roundingTest(d in Test4093610()
715 void roundingTest(DecimalFormat df, double x, String expected) roundingTest() method in NumberRegressionTests
[all...]
H A DNumberFormatTest.java1111 roundingTest(nf, 0.00159999, 4, "0.0016"); in TestRounding487()
1112 roundingTest(nf, 0.00995, 4, "0.01"); in TestRounding487()
1114 roundingTest(nf, 12.3995, 3, "12.4"); in TestRounding487()
1116 roundingTest(nf, 12.4999, 0, "12"); in TestRounding487()
1117 roundingTest(nf, - 19.5, 0, "-20"); in TestRounding487()
1179 private void roundingTest(NumberFormat nf, double x, int maxFractionDigits, final String expected) { in roundingTest() method in NumberFormatTest
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DNumberRegressionTests.java698 roundingTest(df, 12.35, "12.4"); in Test4093610()
699 roundingTest(df, 12.45, "12.4"); in Test4093610()
700 roundingTest(df, 12.452,"12.5"); in Test4093610()
701 roundingTest(df, 12.55, "12.6"); in Test4093610()
702 roundingTest(df, 12.65, "12.6"); in Test4093610()
703 roundingTest(df, 12.652,"12.7"); in Test4093610()
704 roundingTest(df, 12.75, "12.8"); in Test4093610()
705 roundingTest(df, 12.752,"12.8"); in Test4093610()
706 roundingTest(df, 12.85, "12.8"); in Test4093610()
707 roundingTest(d in Test4093610()
712 void roundingTest(DecimalFormat df, double x, String expected) roundingTest() method in NumberRegressionTests
[all...]
H A DNumberFormatTest.java1108 roundingTest(nf, 0.00159999, 4, "0.0016"); in TestRounding487()
1109 roundingTest(nf, 0.00995, 4, "0.01"); in TestRounding487()
1111 roundingTest(nf, 12.3995, 3, "12.4"); in TestRounding487()
1113 roundingTest(nf, 12.4999, 0, "12"); in TestRounding487()
1114 roundingTest(nf, - 19.5, 0, "-20"); in TestRounding487()
1176 private void roundingTest(NumberFormat nf, double x, int maxFractionDigits, final String expected) { in roundingTest() method in NumberFormatTest
/third_party/icu/icu4c/source/test/intltest/
H A Dnumrgts.cpp1183 roundingTest(&df, 12.35, s); in Test4093610()
1184 roundingTest(&df, 12.45, s); in Test4093610()
1186 roundingTest(&df, 12.452,s); in Test4093610()
1188 roundingTest(&df, 12.55, s); in Test4093610()
1189 roundingTest(&df, 12.65, s); in Test4093610()
1191 roundingTest(&df, 12.652,s); in Test4093610()
1193 roundingTest(&df, 12.75, s); in Test4093610()
1194 roundingTest(&df, 12.752,s); in Test4093610()
1195 roundingTest(&df, 12.85, s); in Test4093610()
1197 roundingTest( in Test4093610()
1204 void NumberFormatRegressionTest::roundingTest(DecimalFormat *df, double x, UnicodeString& expected) roundingTest() function in NumberFormatRegressionTest
[all...]
H A Dnumrgts.h56 void roundingTest(DecimalFormat *df, double x, UnicodeString& expected);
H A Dnumfmtst.h416 void roundingTest(NumberFormat& nf, double x, int32_t maxFractionDigits, const char* expected);
H A Dnumfmtst.cpp1345 roundingTest(*nf, 0.00159999, 4, "0.0016"); in TestRounding487()
1346 roundingTest(*nf, 0.00995, 4, "0.01"); in TestRounding487()
1348 roundingTest(*nf, 12.3995, 3, "12.4"); in TestRounding487()
1350 roundingTest(*nf, 12.4999, 0, "12"); in TestRounding487()
1351 roundingTest(*nf, - 19.5, 0, "-20"); in TestRounding487()
1459 NumberFormatTest::roundingTest(NumberFormat& nf, double x, int32_t maxFractionDigits, const char* expected) in roundingTest() function in NumberFormatTest

Completed in 42 milliseconds