Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit b6f23425 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

updated pcc tests

parent a4552e7c
No related branches found
No related tags found
No related merge requests found
......@@ -1683,10 +1683,9 @@ namespace TUGraz.VectoCore.Tests.Integration.ADAS
var run = factory.SimulationRuns().First(r => r.CycleName == cycleName);
var mod = (run.GetContainer().ModalData as ModalDataContainer).Data;
run.Run();
Assert.IsTrue(run.FinishedWithoutErrors);
PrintPCCSections(mod);
Assert.IsTrue(run.FinishedWithoutErrors);
var expected = data;
var segmentWasTested = false;
......
......@@ -606,14 +606,11 @@ namespace TUGraz.VectoCore.Tests.Integration.ADAS
var run = factory.SimulationRuns().First(r => r.CycleName == cycleName);
var mod = (run.GetContainer().ModalData as ModalDataContainer).Data;
run.Run();
Assert.IsTrue(run.FinishedWithoutErrors);
PrintPCCSections(mod);
Assert.IsTrue(run.FinishedWithoutErrors);
var expected = data;
var segmentWasTested = false;
var distances = mod.Columns[ModalResultField.dist.GetName()].Values<Meter>();
var pccStates = mod.Columns["PCCState"].Values<DefaultDriverStrategy.PCCStates>();
var actions = mod.Columns["DriverAction"].Values<DrivingAction>();
......@@ -646,7 +643,6 @@ namespace TUGraz.VectoCore.Tests.Integration.ADAS
Assert.IsTrue(segmentWasTested);
}
private void PrintPCCSections(ModalResults mod)
{
var sCol = mod.Columns[ModalResultField.dist.GetName()];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment