public void testConstructorStringRadix8(){
  String value="76356237071623450";
  int radix=8;
  byte rBytes[]={7,-50,-28,-8,-25,39,40};
  BigInteger aNumber=new BigInteger(value,radix);
  byte resBytes[]=new byte[rBytes.length];
  resBytes=aNumber.toByteArray();
  for (int i=0; i < resBytes.length; i++) {
    assertTrue(resBytes[i] == rBytes[i]);
  }
  assertEquals("incorrect sign",1,aNumber.signum());
}

public void testConstructorStringRadix8 ( ) { String value = "76356237071623450" ; int radix = 8 ; byte rBytes [ ] = { 7 , - 50 , - 28 , - 8 , - 25 , 39 , 40 } ; BigInteger aNumber = new BigInteger ( value , radix ) ; byte resBytes [ ] = new byte [ rBytes . length ] ; resBytes = aNumber . toByteArray ( ) ; for ( int i = 0 ; i < resBytes . length ; i ++ ) { assertTrue ( resBytes [ i ] == rBytes [ i ] ) ; } assertEquals ( "incorrect sign" , 1 , aNumber . signum ( ) ) ; }
create a positive number from a string value and radix 8 .
