393394395396397398399400401
SUMSQ s = new SUMSQ(); assertEquals(eval(s, 3, 4), 25.); } public void testSUMX2MY2() throws Exception { SUMX2MY2 s = new SUMX2MY2(); assertEquals(eval(s, toArray(2, 3, 9, 1, 8, 7, 5), toArray(6, 5, 11, 7, 5, 4, 4)), -55.); }