src/test/java/org/thegalactic/context/constraint/numerical/NumericalStorageTest.java
@Test
    public void testReduceSup() {
        NumericalStorage storage = NumericalStorage.create(10);
        storage.setInf(0, 0);
        storage.setSup(0, 10);
        assertEquals(storage, storage.reduceSup(0, 5));
        assertEquals(5, storage.getSup(0), 0.01);
        storage.reduceSup(0, -5);
        assertTrue(storage.isEmpty(0));
    }
/**
     * Test of reduceSup method, of class NumericalStorage.
     */
Test of reduceSup method, of class NumericalStorage.
Test of reduceSup method of class NumericalStorage .
@Test
    public void testReduceSup() {
        NumericalStorage storage = NumericalStorage.create(10);
        storage.setInf(0, 0);
        storage.setSup(0, 10);
        assertEquals(storage, storage.reduceSup(0, 5));
        assertEquals(5, storage.getSup(0), 0.01);
        storage.reduceSup(0, -5);
        assertTrue(storage.isEmpty(0));
    }
@ Test public void testReduceSup ( ) { NumericalStorage storage = NumericalStorage . create ( 10 ) ; storage . setInf ( 0 , 0 ) ; storage . setSup ( 0 , 10 ) ; assertEquals ( storage , storage . reduceSup ( 0 , 5 ) ) ; assertEquals ( 5 , storage . getSup ( 0 ) , 0.01 ) ; storage . reduceSup ( 0 , - 5 ) ; assertTrue ( storage . isEmpty ( 0 ) ) ; }
Test of reduceSup method, of class NumericalStorage.
Test of reduceSup method of class NumericalStorage .