@Test
public void testMinus() {

  Vector val = test.minus(test);
  assertEquals("size", test.size(), val.size());
  for (int i = 0; i < test.size(); i++) {
    assertEquals("get [" + i + ']', 0.0, val.get(i), EPSILON);
  }
  val = test.minus(test).minus(test);
  assertEquals("cardinality", test.size(), val.size());
  for (int i = 0; i < test.size(); i++) {
    assertEquals("get [" + i + ']', 0.0, val.get(i) + test.get(i), EPSILON);
  }
  Vector val1 = test.plus(1);
  val = val1.minus(test);
  for (int i = 0; i < test.size(); i++) {
    assertEquals("get [" + i + ']', 1.0, val.get(i), EPSILON);
  }
  val1 = test.plus(-1);
  val = val1.minus(test);
  for (int i = 0; i < test.size(); i++) {
    assertEquals("get [" + i + ']', -1.0, val.get(i), EPSILON);
  }
}