mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-2039 update to new test
X-SVN-Rev: 12496
This commit is contained in:
parent
2d96aef2ad
commit
1aeae32480
1 changed files with 7 additions and 7 deletions
|
@ -514,20 +514,20 @@ void TestChoiceFormat::TestClosures(void) {
|
|||
const double *limits2 = fmt2.getLimits(count2);
|
||||
const UBool *closures2 = fmt2.getClosures(count2);
|
||||
|
||||
if(count2 != 6 || !limits2 || !closures2) {
|
||||
if((count2 != 6) || !limits2 || !closures2) {
|
||||
errln("FAIL: couldn't get limits or closures");
|
||||
} else {
|
||||
for(i=0;i<count2;i++) {
|
||||
logln("#%d: limit %g closed %s\n",
|
||||
i,
|
||||
logln("#%d/%d: limit %g closed %s\n",
|
||||
i, count2,
|
||||
limits2[i],
|
||||
closures2[i] ?"T":"F");
|
||||
}
|
||||
if(limits[i] != limits[i]) {
|
||||
if(limits2[i] != limits[i]) {
|
||||
errln("FAIL: limit #%d = %g, should be %g\n", i, limits2[i], limits[i]);
|
||||
}
|
||||
if((closures2[i]!=0) != (closures[i]!=0)) {
|
||||
}
|
||||
if((closures2[i]!=0) != (closures[i]!=0)) {
|
||||
errln("FAIL: closure #%d = %s, should be %s\n", i, closures2[i]?"T":"F", closures[i]?"T":"F");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue