From b6f234252f657283ce19e721fffe636caba5f31a Mon Sep 17 00:00:00 2001 From: Michael Krisper <michael.krisper@tugraz.at> Date: Fri, 27 Aug 2021 10:51:06 +0200 Subject: [PATCH] updated pcc tests --- VectoCore/VectoCoreTest/Integration/ADAS/ADASTestsHEV.cs | 5 ++--- VectoCore/VectoCoreTest/Integration/ADAS/ADASTestsPEV.cs | 6 +----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/VectoCore/VectoCoreTest/Integration/ADAS/ADASTestsHEV.cs b/VectoCore/VectoCoreTest/Integration/ADAS/ADASTestsHEV.cs index 3e0938f628..845a20bd55 100644 --- a/VectoCore/VectoCoreTest/Integration/ADAS/ADASTestsHEV.cs +++ b/VectoCore/VectoCoreTest/Integration/ADAS/ADASTestsHEV.cs @@ -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; diff --git a/VectoCore/VectoCoreTest/Integration/ADAS/ADASTestsPEV.cs b/VectoCore/VectoCoreTest/Integration/ADAS/ADASTestsPEV.cs index 4a053c7214..abe2a17506 100644 --- a/VectoCore/VectoCoreTest/Integration/ADAS/ADASTestsPEV.cs +++ b/VectoCore/VectoCoreTest/Integration/ADAS/ADASTestsPEV.cs @@ -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()]; -- GitLab