src/test/java/org/thegalactic/context/constraint/binary/BinaryStorageTest.java
@Test
    public void testExtend() {
        BinaryStorage storage = BinaryStorage.create(10);
        storage.set(0, true);
        storage.set(1, true);
        storage.set(2, false);
        storage.set(3, false);
        storage.extend(0, true).extend(1, false).extend(2, true).extend(3, false);
        assertEquals("[1000000000]", storage.toString());
    }
/**
     * Test of extend method, of class BinaryStorage.
     */
Test of extend method, of class BinaryStorage.
Test of extend method of class BinaryStorage .
@Test
    public void testExtend() {
        BinaryStorage storage = BinaryStorage.create(10);
        storage.set(0, true);
        storage.set(1, true);
        storage.set(2, false);
        storage.set(3, false);
        storage.extend(0, true).extend(1, false).extend(2, true).extend(3, false);
        assertEquals("[1000000000]", storage.toString());
    }
@ Test public void testExtend ( ) { BinaryStorage storage = BinaryStorage . create ( 10 ) ; storage . set ( 0 , true ) ; storage . set ( 1 , true ) ; storage . set ( 2 , false ) ; storage . set ( 3 , false ) ; storage . extend ( 0 , true ) . extend ( 1 , false ) . extend ( 2 , true ) . extend ( 3 , false ) ; assertEquals ( "[1000000000]" , storage . toString ( ) ) ; }
Test of extend method, of class BinaryStorage.
Test of extend method of class BinaryStorage .