Removed tests invalidated by new argument rules - java.lang.String is

preferred over java.lang.Double when coming from a Java Object and both
Double & Float have constructors that take a String - only the DataType
toString doesn't return the correct value for the test. (See Christine's
comment).
This commit is contained in:
rogerl%netscape.com 1999-12-11 00:42:43 +00:00
Родитель 9e6e1e4202
Коммит 8de0af5814
2 изменённых файлов: 0 добавлений и 23 удалений

Просмотреть файл

@ -83,14 +83,6 @@
dt.PUB_DOUBLE_REPRESENTATION,
"number" );
a[i++] = new TestObject (
"dt.PUB_DOUBLE_REPRESENTATION = java.lang.Double.MIN_VALUE",
"dt.PUB_DOUBLE_REPRESENTATION",
"new java.lang.Double( dt ).doubleValue()",
"typeof new java.lang.Double(dt).doubleValue()",
5e-324,
"number" );
for ( i = 0; i < a.length; i++ ) {
testcases[testcases.length] = new TestCase(
a[i].description +"; "+ a[i].javaFieldName,

Просмотреть файл

@ -60,21 +60,6 @@
// Unrepresentably large numbers are converted to +/-Infinity.
var newValue = Math.random();
a[i++] = new TestObject (
"dt.PUB_DOUBLE_REPRESENTATION = " +newValue,
"dt.PUB_DOUBLE_REPRESENTATION",
"new java.lang.Float( dt ).doubleValue()",
"typeof new java.lang.Float(dt).doubleValue()",
newValue,
"number" );
a[i++] = new TestObject (
"dt.PUB_DOUBLE_REPRESENTATION = java.lang.Double.MIN_VALUE",
"dt.PUB_DOUBLE_REPRESENTATION",
"new java.lang.Float( dt ).doubleValue()",
"typeof new java.lang.Float(dt).doubleValue()",
java.lang.Double.MIN_VALUE,
"number" );
a[i++] = new TestObject (
"dt.PUB_DOUBLE_REPRESENTATION = java.lang.Double.MAX_VALUE;" +