public void testSUM() throws Exception {
assertResult("sum(34,45)", 79.);
}
public void testSUMIF() throws Exception {
AbstractFunction s = new SUMIF();
assertEquals(eval(s, toArray(1, 2, 3), ">2"), 3.);
assertEquals(eval(s, toArray(1.658, 1.656, 1.657), "<1.657"), 1.656);
assertEquals(eval(s, toArray(1, 2, 3), "<=2"), 3.);
assertEquals(eval(s, toArray(1, 2, 3), ">=2"), 5.);
assertEquals(eval(s, toArray("apples", 2, 3), "apples", toArray(4.5)),