Exemplo n.º 1
0
  @Test
  public void testLoad() throws IOException {
    for (String instance : instances) {
      File directory = new File("./data/atsp/");
      File instanceData = new File(directory, instance + ".atsp");

      if (instanceData.exists()) {
        System.out.println(instance);

        TSPInstance problem = new TSPInstance(instanceData);
        Assert.assertEquals(DataType.ATSP, problem.getDataType());
      }
    }
  }