mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 10:17:23 +00:00
ICU-8268 toString on array doesn't produce anything useful. Use Arrays.toString.
X-SVN-Rev: 30730
This commit is contained in:
parent
3458799ca4
commit
e20dcd910d
2 changed files with 12 additions and 10 deletions
|
@ -2996,7 +2996,7 @@ public final class UCharacterTest extends TestFmwk
|
|||
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){
|
||||
}
|
||||
|
@ -3008,7 +3008,7 @@ public final class UCharacterTest extends TestFmwk
|
|||
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){
|
||||
}
|
||||
|
@ -3017,7 +3017,7 @@ public final class UCharacterTest extends TestFmwk
|
|||
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){
|
||||
}
|
||||
|
@ -3181,7 +3181,7 @@ public final class UCharacterTest extends TestFmwk
|
|||
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){
|
||||
}
|
||||
|
@ -3193,7 +3193,7 @@ public final class UCharacterTest extends TestFmwk
|
|||
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){
|
||||
}
|
||||
|
@ -3202,7 +3202,7 @@ public final class UCharacterTest extends TestFmwk
|
|||
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){
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2010, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2011, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -9,6 +9,8 @@
|
|||
package com.ibm.icu.dev.test.util;
|
||||
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import com.ibm.icu.dev.test.TestFmwk;
|
||||
import com.ibm.icu.util.VersionInfo;
|
||||
|
||||
|
@ -119,8 +121,8 @@ public final class VersionInfoTest extends TestFmwk
|
|||
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 ++) {
|
||||
|
@ -181,7 +183,7 @@ public final class VersionInfoTest extends TestFmwk
|
|||
}
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue