Example #1
0
 @Test
 public void testPositiveString() {
   String expected = "positive";
   String actual = cFunction.positive("positive");
   assertEquals(expected, actual);
 }
Example #2
0
 @Test
 public void testPositiveBoolean() {
   boolean expected = true;
   boolean actual = cFunction.positive(true);
   assertEquals(expected, actual);
 }
Example #3
0
 @Test
 public void testPositiveDouble() {
   double expected = 10.3D;
   double actual = cFunction.positive(10.3D);
   assertEquals(expected, actual, delta);
 }
Example #4
0
 @Test
 public void testPositiveLong() {
   long expected = 10;
   long actual = cFunction.positive(10L);
   assertEquals(expected, actual);
 }
Example #5
0
 @Test
 public void testPositiveFloat() {
   float expected = 10.3F;
   float actual = cFunction.positive(10.3F);
   assertEquals(expected, actual, delta);
 }
Example #6
0
 @Test
 public void testPositiveInteger() {
   int expected = 10;
   int actual = cFunction.positive(10);
   assertEquals(expected, actual);
 }