question: public void testNegNegSameLength ( ) { String numA = "-283746278342837476784564875684767" ; String numB = "-293478573489347658763745839457637" ; String res = "71412358434940908477702819237626" ; BigInteger aNumber = new BigInteger ( numA ) ; BigInteger bNumber = new BigInteger ( numB ) ; BigInteger result = aNumber . xor ( bNumber ) ; assertTrue ( res . equals ( result . toString ( ) ) ) ; }
target:  Xor for two negative numbers of the same length