public void assertSamePathCounts(int[][] expected,int[][] actual){
  int nrows=expected.length;
  int ncols=expected[0].length;
  assertEquals("rows",nrows,actual.length);
  assertEquals("cols",ncols,actual[0].length);
  for (int i=0; i < nrows; i++) {
    for (int j=0; j < ncols; j++) {
      assertEquals("M[" + i + ","+ j+ "]",expected[i][j],actual[i][j]);
    }
  }
}

public void assertSamePathCounts ( int [ ] [ ] expected , int [ ] [ ] actual ) { int nrows = expected . length ; int ncols = expected [ 0 ] . length ; assertEquals ( "rows" , nrows , actual . length ) ; assertEquals ( "cols" , ncols , actual [ 0 ] . length ) ; for ( int i = 0 ; i < nrows ; i ++ ) { for ( int j = 0 ; j < ncols ; j ++ ) { assertEquals ( "M[" + i + "," + j + "]" , expected [ i ] [ j ] , actual [ i ] [ j ] ) ; } } }
compares two path count matrices for equality .
