UCharacter.codePointAt(reg_text, 100, limitCases[i]);
errln("UCharacter.codePointAt was suppose to return an exception " +
"but got " + UCharacter.codePointAt(reg_text, 100, limitCases[i]) +
- ". The following passed parameters were Text: " + reg_text.toString() + ", Start: " +
+ ". The following passed parameters were Text: " + Arrays.toString(reg_text) + ", Start: " +
100 + ", Limit: " + limitCases[i] + ".");
} catch(Exception e){
}
UCharacter.codePointAt(empty_text, 0, limitCases[i]);
errln("UCharacter.codePointAt was suppose to return an exception " +
"but got " + UCharacter.codePointAt(empty_text, 0, limitCases[i]) +
- ". The following passed parameters were Text: " + empty_text.toString() + ", Start: " +
+ ". The following passed parameters were Text: " + Arrays.toString(empty_text) + ", Start: " +
0 + ", Limit: " + limitCases[i] + ".");
} catch(Exception e){
}
UCharacter.codePointCount(one_char_text, 0, limitCases[i]);
errln("UCharacter.codePointCount was suppose to return an exception " +
"but got " + UCharacter.codePointCount(one_char_text, 0, limitCases[i]) +
- ". The following passed parameters were Text: " + one_char_text.toString() + ", Start: " +
+ ". The following passed parameters were Text: " + Arrays.toString(one_char_text) + ", Start: " +
0 + ", Limit: " + limitCases[i] + ".");
} catch(Exception e){
}
UCharacter.codePointCount(reg_text, 100, limitCases[i]);
errln("UCharacter.codePointCount was suppose to return an exception " +
"but got " + UCharacter.codePointCount(reg_text, 100, limitCases[i]) +
- ". The following passed parameters were Text: " + reg_text.toString() + ", Start: " +
+ ". The following passed parameters were Text: " + Arrays.toString(reg_text) + ", Start: " +
100 + ", Limit: " + limitCases[i] + ".");
} catch(Exception e){
}
UCharacter.codePointCount(empty_text, 0, limitCases[i]);
errln("UCharacter.codePointCount was suppose to return an exception " +
"but got " + UCharacter.codePointCount(empty_text, 0, limitCases[i]) +
- ". The following passed parameters were Text: " + empty_text.toString() + ", Start: " +
+ ". The following passed parameters were Text: " + Arrays.toString(empty_text) + ", Start: " +
0 + ", Limit: " + limitCases[i] + ".");
} catch(Exception e){
}
UCharacter.codePointCount(one_char_text, 0, limitCases[i]);
errln("UCharacter.codePointCount was suppose to return an exception " +
"but got " + UCharacter.codePointCount(one_char_text, 0, limitCases[i]) +
- ". The following passed parameters were Text: " + one_char_text.toString() + ", Start: " +
+ ". The following passed parameters were Text: " + Arrays.toString(one_char_text) + ", Start: " +
0 + ", Limit: " + limitCases[i] + ".");
} catch(Exception e){
}
/*
*******************************************************************************
-* Copyright (C) 1996-2010, International Business Machines Corporation and *
+* Copyright (C) 1996-2011, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
package com.ibm.icu.dev.test.util;
+import java.util.Arrays;
+
import com.ibm.icu.dev.test.TestFmwk;
import com.ibm.icu.util.VersionInfo;
VersionInfo v1 = getInstance(COMPARE_EQUAL_INT_[i]);
VersionInfo v2 = getInstance(COMPARE_EQUAL_INT_[i + 1]);
if (v1.compareTo(v2) != 0) {
- errln(COMPARE_EQUAL_INT_[i] + " should equal " +
- COMPARE_EQUAL_INT_[i + 1]);
+ errln(Arrays.toString(COMPARE_EQUAL_INT_[i]) + " should equal " +
+ Arrays.toString(COMPARE_EQUAL_INT_[i + 1]));
}
}
for (int i = 0; i < COMPARE_LESS_.length - 1; i ++) {
}
v = getInstance(TOSTRING_INT_[i]);
if (!v.toString().equals(TOSTRING_RESULT_[i])) {
- errln("toString() for " + TOSTRING_INT_[i] +
+ errln("toString() for " + Arrays.toString(TOSTRING_INT_[i]) +
" should produce " + TOSTRING_RESULT_[i]);
}
}