Ejemplo n.º 1
0
 @Test
 public void testSmallerLongDouble() {
   assertTrue(cFunction.smaller(1L, 2.0D));
   assertFalse(cFunction.smaller(1L, 1.0D));
   assertFalse(cFunction.smaller(2L, 1.0D));
 }
Ejemplo n.º 2
0
 @Test
 public void testSmallerLongInteger() {
   assertTrue(cFunction.smaller(1L, 2));
   assertFalse(cFunction.smaller(1L, 1));
   assertFalse(cFunction.smaller(2L, 1));
 }
Ejemplo n.º 3
0
 @Test
 public void testSmallerLongFloat() {
   assertTrue(cFunction.smaller(1L, 2.0F));
   assertFalse(cFunction.smaller(1L, 1.0F));
   assertFalse(cFunction.smaller(2L, 1.0F));
 }
Ejemplo n.º 4
0
 @Test
 public void testSmallerDoubleFloat() {
   assertTrue(cFunction.smaller(1.9, 2.0F));
   assertFalse(cFunction.smaller(1.0, 1.0F));
   assertFalse(cFunction.smaller(2.0, 1.9F));
 }
Ejemplo n.º 5
0
 @Test
 public void testSmallerDoubleLong() {
   assertTrue(cFunction.smaller(1.9, 2L));
   assertFalse(cFunction.smaller(1.0, 1L));
   assertFalse(cFunction.smaller(1.1, 1L));
 }
Ejemplo n.º 6
0
 @Test
 public void testSmallerFloatDouble() {
   assertFalse(cFunction.smaller(1.0F, 1.0));
   assertTrue(cFunction.smaller(0.9F, 1.0));
   assertFalse(cFunction.smaller(1.1F, 1.0));
 }
Ejemplo n.º 7
0
 @Test
 public void testSmallerDoubleInteger() {
   assertTrue(cFunction.smaller(1.9, 2));
   assertFalse(cFunction.smaller(1.0, 1));
   assertFalse(cFunction.smaller(2.0, 1));
 }
Ejemplo n.º 8
0
 @Test
 public void testSmallerFloatInteger() {
   assertTrue(cFunction.smaller(1.9F, 2));
   assertFalse(cFunction.smaller(1.0F, 1));
   assertFalse(cFunction.smaller(1.1F, 1));
 }
Ejemplo n.º 9
0
 @Test
 public void testSmallerFloatLong() {
   assertTrue(cFunction.smaller(1.9F, 2L));
   assertFalse(cFunction.smaller(1.0F, 1L));
   assertFalse(cFunction.smaller(1.1F, 1L));
 }
Ejemplo n.º 10
0
 @Test
 public void testSmallerIntegerLong() {
   assertTrue(cFunction.smaller(1, 2L));
   assertFalse(cFunction.smaller(1, 1L));
   assertFalse(cFunction.smaller(2, 1L));
 }
Ejemplo n.º 11
0
 @Test
 public void testSmallerIntegerDouble() {
   assertTrue(cFunction.smaller(1, 1.1));
   assertFalse(cFunction.smaller(1, 1.0));
   assertFalse(cFunction.smaller(1, 0.9));
 }
Ejemplo n.º 12
0
 @Test
 public void testSmallerIntegerFloat() {
   assertTrue(cFunction.smaller(1, 1.1F));
   assertFalse(cFunction.smaller(1, 1.0F));
   assertFalse(cFunction.smaller(2, 1.9F));
 }
Ejemplo n.º 13
0
 @Test
 public void testSmallerLongLong() {
   assertTrue(cFunction.smaller(1L, 2L));
   assertFalse(cFunction.smaller(1L, 1L));
   assertFalse(cFunction.smaller(2L, 1L));
 }
Ejemplo n.º 14
0
 @Test
 public void testSmallerDoubleDouble() {
   assertTrue(cFunction.smaller(1.9, 2.0));
   assertFalse(cFunction.smaller(1.0, 1.0));
   assertFalse(cFunction.smaller(2.0, 1.9));
 }