Code development platform for open source projects from the European Union institutions

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

corrected tests

parent bfba0f0f
No related branches found
No related tags found
No related merge requests found
......@@ -101,8 +101,8 @@ namespace TUGraz.VectoCore.Tests.FileIO
Assert.AreEqual(3.7890, runData.EngineData.Inertia.Value());
var downshiftSpeeds = new[] { 660, 660, 1750.5456 };
var downshiftTorque = new[] { -163.9, 207.4205, 988.9 };
var downshiftSpeeds = new[] { 660, 660, 1679.9982 };
var downshiftTorque = new[] { -163.9, 257.9742, 988.9 };
Assert.AreEqual(downshiftSpeeds.Length, runData.GearboxData.Gears[2].ShiftPolygon.Downshift.Count);
for (var i = 0; i < downshiftSpeeds.Length; i++) {
......
......@@ -78,9 +78,9 @@ namespace TUGraz.VectoCore.Tests.Models.Simulation
Assert.AreEqual(660.RPMtoRad().Value(), gearbox.ModelData.Gears[2].ShiftPolygon.Downshift[1].AngularSpeed.Value(),
0.0001);
Assert.AreEqual(207.4205, gearbox.ModelData.Gears[2].ShiftPolygon.Downshift[1].Torque.Value(), 0.1);
Assert.AreEqual(257.9742, gearbox.ModelData.Gears[2].ShiftPolygon.Downshift[1].Torque.Value(), 0.1);
Assert.AreEqual(1750.70139.RPMtoRad().Value(),
Assert.AreEqual(1679.9982.RPMtoRad().Value(),
gearbox.ModelData.Gears[2].ShiftPolygon.Downshift[2].AngularSpeed.Value(),
0.1);
Assert.AreEqual(988.9, gearbox.ModelData.Gears[2].ShiftPolygon.Downshift[2].Torque.Value(), 0.0001);
......
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