Lines Matching refs:doAssert
47 static void doAssert(double expect, double got, const char *message);
69 doAssert(expn1, 0.5, "uprv_fmod(30.50, 15.00) failed."); in TestPUtilAPI()
73 doAssert(expn1, 1, "uprv_ceil(0.021) failed."); in TestPUtilAPI()
77 doAssert(expn1, 0, "uprv_floor(0.021) failed."); in TestPUtilAPI()
81 doAssert(expn1, 0.675, "uprv_fabs(2.02-1.345) failed."); in TestPUtilAPI()
84 doAssert(uprv_fmax(2.4, 1.2), 2.4, "uprv_fmax(2.4, 1.2) failed."); in TestPUtilAPI()
88 … doAssert(expn1, uprv_getNaN(), "uprv_fmax(uprv_getNaN(), 1.2) failed. when one parameter is NaN"); in TestPUtilAPI()
91 doAssert(uprv_fmin(2.4, 1.2), 1.2, "uprv_fmin(2.4, 1.2) failed."); in TestPUtilAPI()
95 … doAssert(expn1, uprv_getNaN(), "uprv_fmin(uprv_getNaN(), 1.2) failed. when one parameter is NaN"); in TestPUtilAPI()
98 doAssert(uprv_max(4, 2), 4, "uprv_max(4, 2) failed."); in TestPUtilAPI()
101 doAssert(uprv_min(-4, 2), -4, "uprv_min(-4, 2) failed."); in TestPUtilAPI()
104 doAssert(uprv_trunc(12.3456), 12, "uprv_trunc(12.3456) failed."); in TestPUtilAPI()
105 doAssert(uprv_trunc(12.234E2), 1223, "uprv_trunc(12.234E2) failed."); in TestPUtilAPI()
106 …doAssert(uprv_trunc(uprv_getNaN()), uprv_getNaN(), "uprv_trunc(uprv_getNaN()) failed. with paramet… in TestPUtilAPI()
107 …doAssert(uprv_trunc(uprv_getInfinity()), uprv_getInfinity(), "uprv_trunc(uprv_getInfinity()) faile… in TestPUtilAPI()
111 doAssert(uprv_pow10(4), 10000, "uprv_pow10(4) failed."); in TestPUtilAPI()
131 doAssert(uprv_digitsAfterDecimal(value1), 3, "uprv_digitsAfterDecimal() failed."); in TestPUtilAPI()
132 doAssert(uprv_digitsAfterDecimal(1.2345E2), 2, "uprv_digitsAfterDecimal(1.2345E2) failed."); in TestPUtilAPI()
133 doAssert(uprv_digitsAfterDecimal(1.2345E-2), 6, "uprv_digitsAfterDecimal(1.2345E-2) failed."); in TestPUtilAPI()
134 doAssert(uprv_digitsAfterDecimal(1.2345E2), 2, "uprv_digitsAfterDecimal(1.2345E2) failed."); in TestPUtilAPI()
135 … doAssert(uprv_digitsAfterDecimal(-1.2345E-20), 24, "uprv_digitsAfterDecimal(1.2345E-20) failed."); in TestPUtilAPI()
136 doAssert(uprv_digitsAfterDecimal(1.2345E20), 0, "uprv_digitsAfterDecimal(1.2345E20) failed."); in TestPUtilAPI()
137 doAssert(uprv_digitsAfterDecimal(-0.021), 3, "uprv_digitsAfterDecimal(-0.021) failed."); in TestPUtilAPI()
138 doAssert(uprv_digitsAfterDecimal(23.0), 0, "uprv_digitsAfterDecimal(23.0) failed."); in TestPUtilAPI()
139 …doAssert(uprv_digitsAfterDecimal(0.022223333321), 9, "uprv_digitsAfterDecimal(0.022223333321) fail… in TestPUtilAPI()
420 static void doAssert(double got, double expect, const char *message) in doAssert() function