public void testSubtractExceptions() {
ComplexArray1D a = new ComplexArray1D(new Complex[] { new Complex(1, 1) });
// testing subtract(int, double, double, double, double)
try {
a.subtract(-1, 3d, 4d, 1d, 2d);
fail();
} catch (IndexOutOfBoundsException e) {
assertTrue(true);
} catch (Exception e) {
fail();