mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 22:15:31 +00:00
ICU-4289 more junit-like APIs
X-SVN-Rev: 16939
This commit is contained in:
parent
b571a75770
commit
3e4d1a861a
1 changed files with 6 additions and 6 deletions
|
@ -1342,11 +1342,11 @@ public class TestFmwk extends AbstractTestLog {
|
|||
}
|
||||
|
||||
protected boolean assertEquals(String message, boolean expected, boolean actual) {
|
||||
return handleAssert(expected == actual, message, "" + expected, "" + actual);
|
||||
return handleAssert(expected == actual, message, String.valueOf(expected), String.valueOf(actual));
|
||||
}
|
||||
|
||||
protected boolean assertEquals(String message, long expected, long actual) {
|
||||
return handleAssert(expected == actual, message, "" + expected, "" + actual);
|
||||
return handleAssert(expected == actual, message, String.valueOf(expected), String.valueOf(actual));
|
||||
}
|
||||
|
||||
// do NaN and range calculations to precision of float, don't rely on promotion to double
|
||||
|
@ -1355,8 +1355,8 @@ public class TestFmwk extends AbstractTestLog {
|
|||
? expected == actual
|
||||
: !(Math.abs(expected - actual) > error); // handles NaN
|
||||
return handleAssert(result, message,
|
||||
"" + expected + (error == 0 ? "" : " (within " + error + ")"),
|
||||
"" + actual);
|
||||
String.valueOf(expected) + (error == 0 ? "" : " (within " + error + ")"),
|
||||
String.valueOf(actual));
|
||||
}
|
||||
|
||||
protected boolean assertEquals(String message, double expected, double actual, double error) {
|
||||
|
@ -1364,8 +1364,8 @@ public class TestFmwk extends AbstractTestLog {
|
|||
? expected == actual
|
||||
: !(Math.abs(expected - actual) > error); // handles NaN
|
||||
return handleAssert(result, message,
|
||||
"" + expected + (error == 0 ? "" : " (within " + error + ")"),
|
||||
"" + actual);
|
||||
String.valueOf(expected) + (error == 0 ? "" : " (within " + error + ")"),
|
||||
String.valueOf(actual));
|
||||
}
|
||||
|
||||
protected boolean assertEquals(String message, Object expected, Object actual) {
|
||||
|
|
Loading…
Add table
Reference in a new issue