fix: Fixing tests, bad maths

This commit is contained in:
Chris Cameron
2019-06-13 11:59:12 -04:00
parent e3273934a7
commit 8866a3e1e6
3 changed files with 35 additions and 32 deletions

View File

@@ -40,12 +40,6 @@ namespace ICD.Common.Utils.Tests
Assert.AreEqual(100, MathUtils.MapRange(0, 10, 0, 100, 10));
}
[TestCase(double.MinValue, double.MaxValue, 0.0, 1.0, double.MaxValue, 1.0)]
public void MapRangeTest(double inputStart, double inputEnd, double outputStart, double outputEnd, double value, double expected)
{
Assert.AreEqual(expected, MathUtils.MapRange(inputStart, inputEnd, outputStart, outputEnd, value));
}
[Test, UsedImplicitly]
public void GetRangesTest()
{