Code example for ECFieldF2m

Methods: equals

0
     * Test #5 for <code>equals()</code> method.<br> 
     * 
     * Assertion: objects equal if their m, and rp are mutually equal.  
     */ 
    public final void testEqualsObject05() { 
        ECFieldF2m f1 = new ECFieldF2m(2000);
        ECFieldF2m f2 = new ECFieldF2m(2000, BigInteger.valueOf(0L).
                setBit(0).setBit(1).setBit(2).
                setBit(981).setBit(2000)); 
        assertFalse(f1.equals(f2) || f2.equals(f1));
    } 
 
    /** 
     * Test #6 for <code>equals(Object obj)</code> method.<br> 
     * 
     * Assertion: returns false if obj is <code>null</code> 
     */ 
    public final void testEqualsObject06() { 
        assertFalse(new ECFieldF2m(2000).equals(null));
    } 
Contextual code suggestions in your IDE  Get Codota for Java