public void testCase14(){
  byte rBytes[]={1};
  BigInteger aNumber=BigInteger.ONE;
  BigInteger bNumber=BigInteger.ONE;
  BigInteger result=aNumber.divide(bNumber);
  byte resBytes[]=new byte[rBytes.length];
  resBytes=result.toByteArray();
  for (int i=0; i < resBytes.length; i++) {
    assertTrue(resBytes[i] == rBytes[i]);
  }
  assertEquals("incorrect sign",1,result.signum());
}

public void testCase14 ( ) { byte rBytes [ ] = { 1 } ; BigInteger aNumber = BigInteger . ONE ; BigInteger bNumber = BigInteger . ONE ; BigInteger result = aNumber . divide ( bNumber ) ; byte resBytes [ ] = new byte [ rBytes . length ] ; resBytes = result . toByteArray ( ) ; for ( int i = 0 ; i < resBytes . length ; i ++ ) { assertTrue ( resBytes [ i ] == rBytes [ i ] ) ; } assertEquals ( "incorrect sign" , 1 , result . signum ( ) ) ; }
divide one by one .
