Skip to content

Commit

Permalink
use new population comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed May 27, 2024
1 parent 77dbefa commit 382db35
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.matsim.core.controler.OutputDirectoryHierarchy.OverwriteFileSetting;
import org.matsim.core.population.PopulationUtils;
import org.matsim.core.population.io.PopulationReader;
import org.matsim.core.population.routes.PopulationComparison;
import org.matsim.core.router.TripStructureUtils;
import org.matsim.core.scenario.ScenarioUtils;
import org.matsim.core.utils.collections.CollectionUtils;
Expand Down Expand Up @@ -204,7 +205,8 @@ void testLane() {
Scenario scenarioCurrent = ScenarioUtils.createScenario(ConfigUtils.createConfig());
new PopulationReader(scenarioReference).readFile(utils.getInputDirectory() + "output_plans.xml.gz");
new PopulationReader(scenarioCurrent).readFile(utils.getOutputDirectory() + "output_plans.xml.gz");
assertTrue(PopulationUtils.equalPopulation(scenarioReference.getPopulation(), scenarioCurrent.getPopulation()), "Populations are different");

assertEquals(PopulationComparison.Result.equal, PopulationComparison.compare(scenarioReference.getPopulation(), scenarioCurrent.getPopulation()), "Populations are different");
}

@Test
Expand Down

0 comments on commit 382db35

Please sign in to comment.