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