Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }