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