Exemplo 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));
 }
Exemplo n.º 2
0
 @Test
 public void testSmallerLongInteger() {
   assertTrue(cFunction.smaller(1L, 2));
   assertFalse(cFunction.smaller(1L, 1));
   assertFalse(cFunction.smaller(2L, 1));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo n.º 10
0
 @Test
 public void testSmallerIntegerLong() {
   assertTrue(cFunction.smaller(1, 2L));
   assertFalse(cFunction.smaller(1, 1L));
   assertFalse(cFunction.smaller(2, 1L));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo n.º 13
0
 @Test
 public void testSmallerLongLong() {
   assertTrue(cFunction.smaller(1L, 2L));
   assertFalse(cFunction.smaller(1L, 1L));
   assertFalse(cFunction.smaller(2L, 1L));
 }
Exemplo 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));
 }