src/test/java/org/thegalactic/context/constraint/numerical/NumericalStorageTest.java
@Test
    public void testInf() {
        NumericalStorage storage = NumericalStorage.create(10);
        assertEquals(storage, storage.setInf(0, 0));
        assertEquals(0, storage.getInf(0), 0.01);
        assertEquals(0, storage.getSup(0), 0.01);
        storage.setInf(0, 10);
        assertEquals(Double.POSITIVE_INFINITY, storage.getInf(0), 0.01);
        assertEquals(Double.NEGATIVE_INFINITY, storage.getSup(0), 0.01);
        storage.setInf(0, 10);
        assertEquals(10, storage.getInf(0), 0.01);
        storage.setInf(0, 0);
        assertEquals(0, storage.getInf(0), 0.01);
    }
/**
     * Test of setInf and getInf method, of class NumericalStorage.
     */
Test of setInf and getInf method, of class NumericalStorage.
Test of setInf and getInf method of class NumericalStorage .
@Test
    public void testInf() {
        NumericalStorage storage = NumericalStorage.create(10);
        assertEquals(storage, storage.setInf(0, 0));
        assertEquals(0, storage.getInf(0), 0.01);
        assertEquals(0, storage.getSup(0), 0.01);
        storage.setInf(0, 10);
        assertEquals(Double.POSITIVE_INFINITY, storage.getInf(0), 0.01);
        assertEquals(Double.NEGATIVE_INFINITY, storage.getSup(0), 0.01);
        storage.setInf(0, 10);
        assertEquals(10, storage.getInf(0), 0.01);
        storage.setInf(0, 0);
        assertEquals(0, storage.getInf(0), 0.01);
    }
@ Test public void testInf ( ) { NumericalStorage storage = NumericalStorage . create ( 10 ) ; assertEquals ( storage , storage . setInf ( 0 , 0 ) ) ; assertEquals ( 0 , storage . getInf ( 0 ) , 0.01 ) ; assertEquals ( 0 , storage . getSup ( 0 ) , 0.01 ) ; storage . setInf ( 0 , 10 ) ; assertEquals ( Double . POSITIVE_INFINITY , storage . getInf ( 0 ) , 0.01 ) ; assertEquals ( Double . NEGATIVE_INFINITY , storage . getSup ( 0 ) , 0.01 ) ; storage . setInf ( 0 , 10 ) ; assertEquals ( 10 , storage . getInf ( 0 ) , 0.01 ) ; storage . setInf ( 0 , 0 ) ; assertEquals ( 0 , storage . getInf ( 0 ) , 0.01 ) ; }
Test of setInf and getInf method, of class NumericalStorage.
Test of setInf and getInf method of class NumericalStorage .