Ejemplo n.º 1
0
 /** @title Arguments = Double.POSITIVE_INFINITY, Double.MAX_VALUE */
 public void testB4() {
   T_cmpl_double_1 t = new T_cmpl_double_1();
   assertEquals(1, t.run(Double.POSITIVE_INFINITY, Double.MAX_VALUE));
 }
Ejemplo n.º 2
0
 /** @title Arguments = Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY */
 public void testB5() {
   T_cmpl_double_1 t = new T_cmpl_double_1();
   assertEquals(1, t.run(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY));
 }
Ejemplo n.º 3
0
 /** @title Arguments = Double.NEGATIVE_INFINITY, Double.MIN_VALUE */
 public void testB3() {
   T_cmpl_double_1 t = new T_cmpl_double_1();
   assertEquals(-1, t.run(Double.NEGATIVE_INFINITY, Double.MIN_VALUE));
 }
Ejemplo n.º 4
0
 /** @title Arguments = +0, -0 */
 public void testB2() {
   T_cmpl_double_1 t = new T_cmpl_double_1();
   assertEquals(0, t.run(+0f, -0f));
 }
Ejemplo n.º 5
0
 /** @title Arguments = Double.NaN, Double.MAX_VALUE */
 public void testB1() {
   T_cmpl_double_1 t = new T_cmpl_double_1();
   assertEquals(-1, t.run(Double.NaN, Double.MAX_VALUE));
 }
Ejemplo n.º 6
0
 /** @title Arguments = 3.14, 3.14 */
 public void testN3() {
   T_cmpl_double_1 t = new T_cmpl_double_1();
   assertEquals(0, t.run(3.14d, 3.14d));
 }
Ejemplo n.º 7
0
 /** @title Arguments = -3.14d, 2.7d */
 public void testN2() {
   T_cmpl_double_1 t = new T_cmpl_double_1();
   assertEquals(-1, t.run(-3.14d, 2.7d));
 }