public void testCompareToDiffSigns2(){
  byte aBytes[]={12,56,100,-2,-76,89,45,91,3,-15,35,26,3,91};
  byte bBytes[]={10,20,30,40,50,60,70,10,20,30};
  int aSign=-1;
  int bSign=1;
  BigInteger aNumber=new BigInteger(aSign,aBytes);
  BigInteger bNumber=new BigInteger(bSign,bBytes);
  assertEquals(-1,aNumber.compareTo(bNumber));
}

public void testCompareToDiffSigns2 ( ) { byte aBytes [ ] = { 12 , 56 , 100 , - 2 , - 76 , 89 , 45 , 91 , 3 , - 15 , 35 , 26 , 3 , 91 } ; byte bBytes [ ] = { 10 , 20 , 30 , 40 , 50 , 60 , 70 , 10 , 20 , 30 } ; int aSign = - 1 ; int bSign = 1 ; BigInteger aNumber = new BigInteger ( aSign , aBytes ) ; BigInteger bNumber = new BigInteger ( bSign , bBytes ) ; assertEquals ( - 1 , aNumber . compareTo ( bNumber ) ) ; }
compareto ( biginteger a ) . compare two numbers of different signs . the first is negative .
