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