mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-13060 Fixing string == in IntlTestDecimalFormatAPI*.java.
X-SVN-Rev: 39934
This commit is contained in:
parent
3998c8780f
commit
3802e8b81b
2 changed files with 8 additions and 24 deletions
|
@ -188,33 +188,25 @@ public class IntlTestDecimalFormatAPI extends com.ibm.icu.dev.test.TestFmwk
|
|||
pat.setPositivePrefix("+");
|
||||
posPrefix = pat.getPositivePrefix();
|
||||
logln("Positive prefix (should be +): " + posPrefix);
|
||||
if(posPrefix != "+") {
|
||||
errln("ERROR: setPositivePrefix() failed");
|
||||
}
|
||||
assertEquals("ERROR: setPositivePrefix() failed", "+", posPrefix);
|
||||
|
||||
String negPrefix;
|
||||
pat.setNegativePrefix("-");
|
||||
negPrefix = pat.getNegativePrefix();
|
||||
logln("Negative prefix (should be -): " + negPrefix);
|
||||
if(negPrefix != "-") {
|
||||
errln("ERROR: setNegativePrefix() failed");
|
||||
}
|
||||
assertEquals("ERROR: setNegativePrefix() failed", "-", negPrefix);
|
||||
|
||||
String posSuffix;
|
||||
pat.setPositiveSuffix("_");
|
||||
posSuffix = pat.getPositiveSuffix();
|
||||
logln("Positive suffix (should be _): " + posSuffix);
|
||||
if(posSuffix != "_") {
|
||||
errln("ERROR: setPositiveSuffix() failed");
|
||||
}
|
||||
assertEquals("ERROR: setPositiveSuffix() failed", "_", posSuffix);
|
||||
|
||||
String negSuffix;
|
||||
pat.setNegativeSuffix("~");
|
||||
negSuffix = pat.getNegativeSuffix();
|
||||
logln("Negative suffix (should be ~): " + negSuffix);
|
||||
if(negSuffix != "~") {
|
||||
errln("ERROR: setNegativeSuffix() failed");
|
||||
}
|
||||
assertEquals("ERROR: setNegativeSuffix() failed", "~", negSuffix);
|
||||
|
||||
long multiplier = 0;
|
||||
pat.setMultiplier(8);
|
||||
|
|
|
@ -146,33 +146,25 @@ public class IntlTestDecimalFormatAPIC extends com.ibm.icu.dev.test.TestFmwk {
|
|||
pat.setPositivePrefix("+");
|
||||
posPrefix = pat.getPositivePrefix();
|
||||
logln("Positive prefix (should be +): " + posPrefix);
|
||||
if (posPrefix != "+") {
|
||||
errln("ERROR: setPositivePrefix() failed");
|
||||
}
|
||||
assertEquals("ERROR: setPositivePrefix() failed", "+", posPrefix);
|
||||
|
||||
String negPrefix;
|
||||
pat.setNegativePrefix("-");
|
||||
negPrefix = pat.getNegativePrefix();
|
||||
logln("Negative prefix (should be -): " + negPrefix);
|
||||
if (negPrefix != "-") {
|
||||
errln("ERROR: setNegativePrefix() failed");
|
||||
}
|
||||
assertEquals("ERROR: setNegativePrefix() failed", "-", negPrefix);
|
||||
|
||||
String posSuffix;
|
||||
pat.setPositiveSuffix("_");
|
||||
posSuffix = pat.getPositiveSuffix();
|
||||
logln("Positive suffix (should be _): " + posSuffix);
|
||||
if (posSuffix != "_") {
|
||||
errln("ERROR: setPositiveSuffix() failed");
|
||||
}
|
||||
assertEquals("ERROR: setPositiveSuffix() failed", "_", posSuffix);
|
||||
|
||||
String negSuffix;
|
||||
pat.setNegativeSuffix("~");
|
||||
negSuffix = pat.getNegativeSuffix();
|
||||
logln("Negative suffix (should be ~): " + negSuffix);
|
||||
if (negSuffix != "~") {
|
||||
errln("ERROR: setNegativeSuffix() failed");
|
||||
}
|
||||
assertEquals("ERROR: setNegativeSuffix() failed", "~", negSuffix);
|
||||
|
||||
long multiplier = 0;
|
||||
pat.setMultiplier(8);
|
||||
|
|
Loading…
Add table
Reference in a new issue