예제 #1
0
 @Test
 public void divide8by2() {
   Solution029 solution029 = new Solution029();
   assertEquals(8 / 2, solution029.divide(8, 2));
 }
예제 #2
0
 @Test
 public void divideNegative2147483648ByNegative2() {
   Solution029 solution029 = new Solution029();
   assertEquals(Integer.MIN_VALUE / -2, solution029.divide(-2147483648, -2));
 }
예제 #3
0
 @Test
 public void divide1036963541ByNegative24409858() {
   Solution029 solution029 = new Solution029();
   assertEquals(1036963541 / -24409858, solution029.divide(1036963541, -24409858));
 }
예제 #4
0
 @Test
 public void divideNegative2147483648By1() {
   Solution029 solution029 = new Solution029();
   assertEquals(Integer.MIN_VALUE, solution029.divide(Integer.MIN_VALUE, 1));
 }
예제 #5
0
 @Test
 public void divideNegative9By2() {
   Solution029 solution029 = new Solution029();
   assertEquals(-9 / 2, solution029.divide(-9, 2));
 }
예제 #6
0
 @Test
 public void divide9ByNegative2() {
   Solution029 solution029 = new Solution029();
   assertEquals(9 / -2, solution029.divide(9, -2));
 }
예제 #7
0
 @Test
 public void divideNegative1By1() {
   Solution029 solution029 = new Solution029();
   assertEquals(-1, solution029.divide(-1, 1));
 }
예제 #8
0
 @Test
 public void divide9by2() {
   Solution029 solution029 = new Solution029();
   assertEquals(9 / 2, solution029.divide(9, 2));
 }