From 81f5f24f86373e1012767c398ccbaebc5b2dd448 Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 20 Jun 2025 11:37:39 +0100 Subject: [PATCH] More tests --- UnitTests/Tests/Utils/MathUtilTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UnitTests/Tests/Utils/MathUtilTests.cs b/UnitTests/Tests/Utils/MathUtilTests.cs index dbebd6b7..6709d1f3 100644 --- a/UnitTests/Tests/Utils/MathUtilTests.cs +++ b/UnitTests/Tests/Utils/MathUtilTests.cs @@ -105,6 +105,8 @@ public class MathUtilTests new double[] { 0, 10, 20, 30 }, 10.040816326530612d )] + [DataRow(1d, new double[] { 1, 10, 500, 510 }, new double[] { 2, 10, 20, 30 }, 2d)] + [DataRow(11d, new double[] { 1, 10 }, new double[] { 2, 10 }, 10d)] public void InterpTest(double input, double[] x, double[] y, double expected) { var actual = _mathUtil.Interp1(input, x.ToList(), y.ToList());