From 956a4f52599427e80320a1ddd5f49d485fb60baa Mon Sep 17 00:00:00 2001 From: Evangelink Date: Tue, 30 Jun 2020 18:28:21 +0200 Subject: [PATCH] Fix test to use testcase parameter Fix RayleightTests.ValidateMaximum test to use the scale parameter instead of the hardcoded value. --- .../DistributionTests/Continuous/RayleighTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Numerics.Tests/DistributionTests/Continuous/RayleighTests.cs b/src/Numerics.Tests/DistributionTests/Continuous/RayleighTests.cs index 098d50cb..743c867a 100644 --- a/src/Numerics.Tests/DistributionTests/Continuous/RayleighTests.cs +++ b/src/Numerics.Tests/DistributionTests/Continuous/RayleighTests.cs @@ -200,7 +200,7 @@ namespace MathNet.Numerics.UnitTests.DistributionTests.Continuous [TestCase(Double.PositiveInfinity)] public void ValidateMaximum(double scale) { - var n = new Rayleigh(1.0); + var n = new Rayleigh(scale); Assert.AreEqual(Double.PositiveInfinity, n.Maximum); }