mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 10:17:23 +00:00
ICU-1970 Use epsilon for u_getNumericValue test.
X-SVN-Rev: 9210
This commit is contained in:
parent
7c5fa43519
commit
fc657b31ca
1 changed files with 3 additions and 3 deletions
|
@ -2676,10 +2676,10 @@ TestNumericProperties(void) {
|
|||
nv=u_getNumericValue(c);
|
||||
|
||||
if(type!=values[i].type) {
|
||||
log_err("UCHAR_NUMERIC_TYPE(U+%04lx)=%d should be %d\n", type, values[i].type);
|
||||
log_err("UCHAR_NUMERIC_TYPE(U+%04lx)=%d should be %d\n", c, type, values[i].type);
|
||||
}
|
||||
if(nv!=values[i].numValue) {
|
||||
log_err("u_getNumericValue(U+%04lx)=%g should be %g\n", nv, values[i].numValue);
|
||||
if(uprv_fabs(nv - values[i].numValue) >= 0.000001) {
|
||||
log_err("u_getNumericValue(U+%04lx)=%g should be %g\n", c, nv, values[i].numValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue