regionator_test.cc
// Reads 2 tiles, one from subdir "tiles" and one from "testdata", and
// returns whether they are equal.
Reads 2 tiles, one from subdir "tiles" and one from "testdata", and
returns whether they are equal.
Reads 2 tiles one from subdir " tiles " and one from " testdata " and returns whether they are equal .
bool CompareTile(const char *filename) {
  string tile_path = StringPrintf("tiles/%s", filename);
  string true_tile_path = StringPrintf("testdata/%s", filename);
  Image tile;
  Image true_tile;
  if (!tile.Read(tile_path)) {
    return false;
  }
  if (!true_tile.Read(true_tile_path)) {
    return false;
  }
  return tile.Equals(true_tile);
}
bool CompareTile ( const char * filename ) { string tile_path = StringPrintf ( " " , filename ) ; string true_tile_path = StringPrintf ( " " , filename ) ; Image tile ; Image true_tile ; if ( ! tile . Read ( tile_path ) ) { return false ; } if ( ! true_tile . Read ( true_tile_path ) ) { return false ; } return tile . Equals ( true_tile ) ; }
Reads 2 tiles, one from subdir "tiles" and one from "testdata", and
returns whether they are equal.
Reads 2 tiles one from subdir " tiles " and one from " testdata " and returns whether they are equal .