Code example for BitSet

Methods: clone

0
    /** 
     * tests java.util.BitSet#clone() 
     */ 
    public void test_clone() { 
        BitSet bs;
        bs = (BitSet) eightbs.clone();
        assertEquals("clone failed to return equal BitSet", bs, eightbs);
    } 
 
    /** 
     * @tests java.util.BitSet#equals(java.lang.Object) 
     */ 
    public void test_equalsLjava_lang_Object() { 
        BitSet bs;
        bs = (BitSet) eightbs.clone();
        assertEquals("Same BitSet returned false", eightbs, eightbs);
        assertEquals("Identical BitSet returned false", bs, eightbs);
        bs.clear(6);
        assertFalse("Different BitSets returned true", eightbs.equals(bs));
 
        bs = (BitSet) eightbs.clone();