179180181182183184185186187188189
*/ public void testNegateExceptions() { ComplexArray1D a = new ComplexArray1D(new Complex[] { new Complex(1, 1) }); try { a.negate(-1); fail(); } catch (IndexOutOfBoundsException e) { assertTrue(true); } catch (Exception e) { fail();
187188189190191192193194195196197
assertTrue(true); } catch (Exception e) { fail(); } try { a.negate(5); fail(); } catch (IndexOutOfBoundsException e) { assertTrue(true); } catch (Exception e) { fail();