Example #1
0
 @Test
 public void testSmallerLongDouble() {
   assertTrue(cFunction.smaller(1L, 2.0D));
   assertFalse(cFunction.smaller(1L, 1.0D));
   assertFalse(cFunction.smaller(2L, 1.0D));
 }
Example #2
0
 @Test
 public void testSmallerLongInteger() {
   assertTrue(cFunction.smaller(1L, 2));
   assertFalse(cFunction.smaller(1L, 1));
   assertFalse(cFunction.smaller(2L, 1));
 }
Example #3
0
 @Test
 public void testSmallerLongFloat() {
   assertTrue(cFunction.smaller(1L, 2.0F));
   assertFalse(cFunction.smaller(1L, 1.0F));
   assertFalse(cFunction.smaller(2L, 1.0F));
 }
Example #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));
 }
Example #5
0
 @Test
 public void testSmallerDoubleLong() {
   assertTrue(cFunction.smaller(1.9, 2L));
   assertFalse(cFunction.smaller(1.0, 1L));
   assertFalse(cFunction.smaller(1.1, 1L));
 }
Example #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));
 }
Example #7
0
 @Test
 public void testSmallerDoubleInteger() {
   assertTrue(cFunction.smaller(1.9, 2));
   assertFalse(cFunction.smaller(1.0, 1));
   assertFalse(cFunction.smaller(2.0, 1));
 }
Example #8
0
 @Test
 public void testSmallerFloatInteger() {
   assertTrue(cFunction.smaller(1.9F, 2));
   assertFalse(cFunction.smaller(1.0F, 1));
   assertFalse(cFunction.smaller(1.1F, 1));
 }
Example #9
0
 @Test
 public void testSmallerFloatLong() {
   assertTrue(cFunction.smaller(1.9F, 2L));
   assertFalse(cFunction.smaller(1.0F, 1L));
   assertFalse(cFunction.smaller(1.1F, 1L));
 }
Example #10
0
 @Test
 public void testSmallerIntegerLong() {
   assertTrue(cFunction.smaller(1, 2L));
   assertFalse(cFunction.smaller(1, 1L));
   assertFalse(cFunction.smaller(2, 1L));
 }
Example #11
0
 @Test
 public void testSmallerIntegerDouble() {
   assertTrue(cFunction.smaller(1, 1.1));
   assertFalse(cFunction.smaller(1, 1.0));
   assertFalse(cFunction.smaller(1, 0.9));
 }
Example #12
0
 @Test
 public void testSmallerIntegerFloat() {
   assertTrue(cFunction.smaller(1, 1.1F));
   assertFalse(cFunction.smaller(1, 1.0F));
   assertFalse(cFunction.smaller(2, 1.9F));
 }
Example #13
0
 @Test
 public void testSmallerLongLong() {
   assertTrue(cFunction.smaller(1L, 2L));
   assertFalse(cFunction.smaller(1L, 1L));
   assertFalse(cFunction.smaller(2L, 1L));
 }
Example #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));
 }