Пример #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));
 }