ICU-5161 Don't create a verbose log message when not in verbose mode and NaN is being tested.
This fixes a Purify warning. X-SVN-Rev: 19855
This commit is contained in:
parent
e933e38b2d
commit
d49dcbdc56
@ -1,6 +1,6 @@
|
||||
/********************************************************************
|
||||
* COPYRIGHT:
|
||||
* Copyright (c) 1997-2005, International Business Machines Corporation and
|
||||
* Copyright (c) 1997-2006, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
********************************************************************/
|
||||
|
||||
@ -203,11 +203,14 @@ PUtilTest::maxMinTest(double a, double b, double exp, UBool max)
|
||||
errln(UnicodeString("FAIL: max(") + a + ", " + b + ") is " + result + ", expected " + exp);
|
||||
else
|
||||
errln(UnicodeString("FAIL: min(") + a + ", " + b + ") is " + result + ", expected " + exp);
|
||||
else
|
||||
if(max)
|
||||
logln(UnicodeString("OK: max(") + a + ", " + b + ") is " + result);
|
||||
else
|
||||
logln(UnicodeString("OK: min(") + a + ", " + b + ") is " + result);
|
||||
else {
|
||||
if (verbose) {
|
||||
if(max)
|
||||
logln(UnicodeString("OK: max(") + a + ", " + b + ") is " + result);
|
||||
else
|
||||
logln(UnicodeString("OK: min(") + a + ", " + b + ") is " + result);
|
||||
}
|
||||
}
|
||||
}
|
||||
//==============================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user