question: public void testDivisionKnuthFirstDigitsEqual ( ) { byte aBytes [ ] = { 2 , - 3 , - 4 , - 5 , - 1 , - 5 , - 4 , - 3 , - 2 , - 1 , 0 , 1 , 2 , 3 , 4 , 5 } ; byte bBytes [ ] = { 2 , - 3 , - 4 , - 5 , - 1 , - 1 , - 1 , - 1 } ; int aSign = - 1 ; int bSign = - 1 ; byte rBytes [ ] = { 0 , - 1 , - 1 , - 1 , - 1 , - 2 , - 88 , - 60 , 41 } ; BigInteger aNumber = new BigInteger ( aSign , aBytes ) ; BigInteger bNumber = new BigInteger ( bSign , bBytes ) ; BigInteger result = aNumber . divide ( bNumber ) ; byte resBytes [ ] = new byte [ rBytes . length ] ; resBytes = result . toByteArray ( ) ; for ( int i = 0 ; i < resBytes . length ; i ++ ) { assertTrue ( resBytes [ i ] == rBytes [ i ] ) ; } assertEquals ( "incorrect sign" , 1 , result . signum ( ) ) ; }
target:  Verifies the case when the first digits of the dividend and divisor equal.