Code example for BigInteger

Methods: intValue

0
    /** 
     * @tests java.math.BigInteger#intValue() 
     */ 
    public void test_intValue() { 
        assertTrue("Incorrect intValue for 2**70",
                twoToTheSeventy.intValue() == 0);
        assertTrue("Incorrect intValue for 2", two.intValue() == 2);
    } 
 
    /** 
     * @tests java.math.BigInteger#longValue() 
     */ 
    public void test_longValue() { 
        assertTrue("Incorrect longValue for 2**70",
                twoToTheSeventy.longValue() == 0);
        assertTrue("Incorrect longValue for 2", two.longValue() == 2);
    } 
 
    /** 
     * @tests java.math.BigInteger#valueOf(long) 
     */