.equals() correction

X-SVN-Rev: 2571
This commit is contained in:
Madhu K 2000-10-04 23:12:33 +00:00
parent 539869f5f4
commit 7f0bab0a86
2 changed files with 8 additions and 12 deletions

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/translit/Attic/UnicodeFilterLogicTest.java,v $
* $Date: 2000/10/04 21:58:12 $
* $Revision: 1.1 $
* $Date: 2000/10/04 23:12:33 $
* $Revision: 1.2 $
*
*****************************************************************************************
*/
@ -175,11 +175,9 @@ public class UnicodeFilterLogicTest extends TestFmwk {
}
void expect(Transliterator t, String message, String source, String expectedResult) {
String rsource=source;
String rsource = source;
t.transliterate(rsource);
expectAux(t.getID() + ":Replaceable " + message, source + "->" + rsource, rsource==expectedResult, expectedResult);
expectAux(t.getID() + ":Replaceable " + message, source + "->" + rsource, expectedResult.equals(rsource), expectedResult);
}
void expectAux(String tag, String summary, boolean pass, String expectedResult) {

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/test/translit/Attic/UnicodeFilterLogicTest.java,v $
* $Date: 2000/10/04 21:58:12 $
* $Revision: 1.1 $
* $Date: 2000/10/04 23:12:33 $
* $Revision: 1.2 $
*
*****************************************************************************************
*/
@ -175,11 +175,9 @@ public class UnicodeFilterLogicTest extends TestFmwk {
}
void expect(Transliterator t, String message, String source, String expectedResult) {
String rsource=source;
String rsource = source;
t.transliterate(rsource);
expectAux(t.getID() + ":Replaceable " + message, source + "->" + rsource, rsource==expectedResult, expectedResult);
expectAux(t.getID() + ":Replaceable " + message, source + "->" + rsource, expectedResult.equals(rsource), expectedResult);
}
void expectAux(String tag, String summary, boolean pass, String expectedResult) {