Esempio n. 1
0
 @Test
 public void testPlusFloatDouble() {
   double expected = 10.6;
   double actual = cFunction.plus(5.3F, 5.3);
   assertEquals(expected, actual, delta);
 }
Esempio n. 2
0
 @Test
 public void testPlusIntegerLong() {
   long expected = 10;
   long actual = cFunction.plus(5, 5L);
   assertEquals(expected, actual);
 }
Esempio n. 3
0
 @Test
 public void testPlusFloatInteger() {
   float expected = 10.3F;
   float actual = cFunction.plus(5.3F, 5);
   assertEquals(expected, actual, delta);
 }
Esempio n. 4
0
 @Test
 public void testPlusIntegerInteger() {
   int expected = 10;
   int actual = cFunction.plus(5, 5);
   assertEquals(expected, actual);
 }
Esempio n. 5
0
 @Test
 public void testPlusIntegerDouble() {
   double expected = 10.3;
   double actual = cFunction.plus(5, 5.3);
   assertEquals(expected, actual, delta);
 }
Esempio n. 6
0
 @Test
 public void testPlusLongDouble() {
   double expected = 10;
   double actual = cFunction.plus(5L, 5.0d);
   assertEquals(expected, actual, delta);
 }
Esempio n. 7
0
 @Test
 public void testPlusLongFloat() {
   float expected = 10;
   float actual = cFunction.plus(5L, 5.0f);
   assertEquals(expected, actual, delta);
 }
Esempio n. 8
0
 @Test
 public void testPlusLongInteger() {
   long expected = 10;
   long actual = cFunction.plus(5L, 5);
   assertEquals(expected, actual);
 }
Esempio n. 9
0
 @Test
 public void testPlusDoubleLong() {
   double expected = 10.3;
   double actual = cFunction.plus(5.3, 5L);
   assertEquals(expected, actual, delta);
 }
Esempio n. 10
0
 @Test
 public void testPlusDoubleInteger() {
   double expected = 10.6;
   double actual = cFunction.plus(5.6, 5);
   assertEquals(expected, actual, delta);
 }