Package org.boris.expr.util

Examples of org.boris.expr.util.Criteria.matches()


{
    public void testDatabase() throws Exception {
        Database db = Database.valueOf(loadArray("db1-d.txt"));
        assertEquals(db.get(2, "Yield"), 9);
        Criteria c = Criteria.valueOf(loadArray("db1-c.txt"));
        assertEquals(c.matches(db, 3), true);
    }

    public void testDAVERAGE() throws Exception {
        assertResult(c(), "DAVERAGE(A4:E10,\"Yield\",A1:B2)", 12.);
        assertResult(c(), "DAVERAGE(A4:E10,3,A4:E10)", 13.);
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.