mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-18 11:14:22 +00:00
ICU-10720 Fixed a couple of defective test code.
X-SVN-Rev: 35323
This commit is contained in:
parent
aaf4a4d807
commit
c7d1e72a63
2 changed files with 3 additions and 5 deletions
|
@ -1115,9 +1115,7 @@ public class DateTimeGeneratorTest extends TestFmwk {
|
|||
"{Hour:N}{Month:N}{Fractional_Second:N} {Month:N}{Day_Of_Year:N}{Year:N}",
|
||||
"{Hour:N}{Month:N}{Fractional_Second:N} {Month:N}{Day_Of_Year:N}{Year:N}"};
|
||||
for(int i=0; i<cases.length; i++){
|
||||
try{
|
||||
if(!dt.getFields(cases[i]).equals(results[i]));
|
||||
} catch(Exception e){
|
||||
if(!dt.getFields(cases[i]).equals(results[i])) {
|
||||
errln("DateTimePatternGenerator.getFields(String) did not " +
|
||||
"not return an expected result when passing " + cases[i] +
|
||||
". Got " + dt.getFields(cases[i]) + " but expected " +
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2013, International Business Machines Corporation and
|
||||
* Copyright (C) 1996-2014, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -3324,7 +3324,7 @@ public final class UCharacterTest extends TestFmwk
|
|||
UCharacter.codePointCount(reg_text, invalid_startCases[i], 1);
|
||||
errln("UCharacter.codePointCount was suppose to return an exception " +
|
||||
"but got " + UCharacter.codePointCount(reg_text, invalid_startCases[i], 1) +
|
||||
". The following passed parameters were Text: " + reg_text.toString() + ", Start: " +
|
||||
". The following passed parameters were Text: " + String.valueOf(reg_text) + ", Start: " +
|
||||
invalid_startCases[i] + ", Limit: " + 1 + ".");
|
||||
} catch(Exception e){
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue