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