assertEquals("Instance " + (i + 1), inst.value(0) / inst.value(1), inst.value(inst.numAttributes() - 1), EXPR_DELTA);
if (inst.value(1) == 0) { assert("Instance " + (i + 1) + " should have been ?" , inst.isMissing(inst.numAttributes() - 1)); } else { assertEquals("Instance " + (i + 1), inst.value(0) / inst.value(1), inst.value(inst.numAttributes() - 1), EXPR_DELTA); }
  public void testDivide() {    m_Filter = getFilter("a1/a2");    Instances result = useFilter();    for (int i = 0; i < result.numInstances(); i++) {      Instance inst = result.instance(i);      assertEquals("Instance " + (i + 1),                   inst.value(0) / inst.value(1),                    inst.value(inst.numAttributes() - 1), EXPR_DELTA);    }  }