Package net.fortytwo.ripple.model

Examples of net.fortytwo.ripple.model.NumericValue.intValue()


        assertEquals(NumericValue.Type.INTEGER, l.getDatatype());
        assertEquals(0, l.intValue());
        l = mc.valueOf(-42);
        assertTrue(l instanceof NumericValue);
        assertEquals(NumericValue.Type.INTEGER, l.getDatatype());
        assertEquals(-42, l.intValue());

        // Create a long literal.
        l = mc.valueOf(42l);
        assertTrue(l instanceof NumericValue);
        assertEquals(NumericValue.Type.LONG, l.getDatatype());
View Full Code Here


                assertTrue("for case " + signature, null != correctResult);

                switch (correctResult.getDatatype()) {
                    case INTEGER:
                        assertEquals("for case " + signature, NumericValue.Type.INTEGER, actualResult.getDatatype());
                        assertEquals("for case " + signature, correctResult.intValue(), actualResult.intValue());
                        break;
                    case LONG:
                        assertEquals("for case " + signature, NumericValue.Type.LONG, actualResult.getDatatype());
                        assertEquals("for case " + signature, correctResult.longValue(), actualResult.longValue());
                        break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.