public void test_getLowestSetBitNeg(){
  byte aBytes[]={-1,-128,56,100,-2,-76,89,45,91,3,-15,35,26};
  int aSign=-1;
  int iNumber=1;
  BigInteger aNumber=new BigInteger(aSign,aBytes);
  int result=aNumber.getLowestSetBit();
  assertTrue("incorrect value",result == iNumber);
}

public void test_getLowestSetBitNeg ( ) { byte aBytes [ ] = { - 1 , - 128 , 56 , 100 , - 2 , - 76 , 89 , 45 , 91 , 3 , - 15 , 35 , 26 } ; int aSign = - 1 ; int iNumber = 1 ; BigInteger aNumber = new BigInteger ( aSign , aBytes ) ; int result = aNumber . getLowestSetBit ( ) ; assertTrue ( "incorrect value" , result == iNumber ) ; }
java . math . biginteger # getlowestsetbit ( ) getlowestsetbit for negative biginteger
