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