public void testEqualsBigIntegerTrue(){
  byte aBytes[]={12,56,100,-2,-76,89,45,91,3,-15,35,26,3,91};
  byte bBytes[]={12,56,100,-2,-76,89,45,91,3,-15,35,26,3,91};
  int aSign=1;
  int bSign=1;
  BigInteger aNumber=new BigInteger(aSign,aBytes);
  Object bNumber=new BigInteger(bSign,bBytes);
  assertTrue(aNumber.equals(bNumber));
}

public void testEqualsBigIntegerTrue ( ) { byte aBytes [ ] = { 12 , 56 , 100 , - 2 , - 76 , 89 , 45 , 91 , 3 , - 15 , 35 , 26 , 3 , 91 } ; byte bBytes [ ] = { 12 , 56 , 100 , - 2 , - 76 , 89 , 45 , 91 , 3 , - 15 , 35 , 26 , 3 , 91 } ; int aSign = 1 ; int bSign = 1 ; BigInteger aNumber = new BigInteger ( aSign , aBytes ) ; Object bNumber = new BigInteger ( bSign , bBytes ) ; assertTrue ( aNumber . equals ( bNumber ) ) ; }
equals ( object obj ) . obj is a biginteger . numbers are equal .
