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 0ffd7870 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

extend mod-data / sum-data integrity test to test for sum of time-shares

parent 674e5908
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,8 @@ namespace TUGraz.VectoCore.Tests.Reports
[TestFixture]
public class ModDataTest
{
[TestCase()]
public void ModDataIntegritySimpleTest()
{
......@@ -208,6 +210,14 @@ namespace TUGraz.VectoCore.Tests.Reports
Assert.AreEqual(fcPerLoad, fcPer100km / loadingValue, 1e-3, "input file: {0} cycle: {1} loading: {2}",
inputFile, cycle, loading);
}
var stopTimeShare = ((SI)row[SummaryDataContainer.STOP_TIMESHARE]).Value();
var accTimeShare = ((SI)row[SummaryDataContainer.ACC_TIMESHARE]).Value();
var decTimeShare = ((SI)row[SummaryDataContainer.DEC_TIMESHARE]).Value();
var cruiseTimeShare = ((SI)row[SummaryDataContainer.CRUISE_TIMESHARE]).Value();
Assert.AreEqual(100, stopTimeShare + accTimeShare + decTimeShare + cruiseTimeShare, 1e-3,
"input file: {0} cycle: {1} loading: {2}", inputFile, cycle, loading);
}
}
......
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