Example #1
0
 @Test
 public void testMulLongFloat() {
   float expected = 25f;
   float actual = cFunction.mul(5L, 5.0f);
   assertEquals(expected, actual, delta);
 }
Example #2
0
 @Test
 public void testMulLongDouble() {
   double expected = 25L;
   double actual = cFunction.mul(5L, 5.0d);
   assertEquals(expected, actual, delta);
 }
Example #3
0
 @Test
 public void testMulDoubleLong() {
   double expected = 25.0;
   double actual = cFunction.mul(5.0, 5L);
   assertEquals(expected, actual, delta);
 }
Example #4
0
 @Test
 public void testMulLongInteger() {
   long expected = 25L;
   long actual = cFunction.mul(5L, 5);
   assertEquals(expected, actual);
 }
Example #5
0
 @Test
 public void testMulFloatDouble() {
   double expected = 25.0;
   double actual = cFunction.mul(5.0F, 5.0);
   assertEquals(expected, actual, delta);
 }
Example #6
0
 @Test
 public void testMulFloatInteger() {
   float expected = 25.0F;
   float actual = cFunction.mul(5.0F, 5);
   assertEquals(expected, actual, delta);
 }
Example #7
0
 @Test
 public void testMulIntegerLong() {
   long expected = 25L;
   long actual = cFunction.mul(5, 5L);
   assertEquals(expected, actual);
 }
Example #8
0
 @Test
 public void testMulIntegerDouble() {
   double expected = 25.0;
   double actual = cFunction.mul(5, 5.0D);
   assertEquals(expected, actual, delta);
 }
Example #9
0
 @Test
 public void testMulIntegerInteger() {
   int expected = 25;
   int actual = cFunction.mul(5, 5);
   assertEquals(expected, actual);
 }