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