protected void checkArray(String msg,Fraction[] m,Fraction[] n){
  if (m.length != n.length) {
    Assert.fail("vectors have different lengths");
  }
  for (int i=0; i < m.length; i++) {
    Assert.assertEquals(msg + " " + i+ " elements differ",m[i],n[i]);
  }
}

protected void checkArray ( String msg , Fraction [ ] m , Fraction [ ] n ) { if ( m . length != n . length ) { Assert . fail ( "vectors have different lengths" ) ; } for ( int i = 0 ; i < m . length ; i ++ ) { Assert . assertEquals ( msg + " " + i + " elements differ" , m [ i ] , n [ i ] ) ; } }
verifies that two vectors are equals
