Пример #1
0
 @Test
 public void testNegativeLong() {
   long expected = 10L;
   long actual = cFunction.negative(-10L);
   assertEquals(expected, actual);
 }
Пример #2
0
 @Test
 public void testNegativeFloat() {
   float expected = -10.3F;
   float actual = cFunction.negative(10.3F);
   assertEquals(expected, actual, delta);
 }
Пример #3
0
 @Test
 public void testNegativeDouble() {
   double expected = -10.3;
   double actual = cFunction.negative(10.3);
   assertEquals(expected, actual, delta);
 }
Пример #4
0
 @Test
 public void testNegativeInteger() {
   int expected = -10;
   int actual = cFunction.negative(10);
   assertEquals(expected, actual);
 }