From f961530962404df4f4773c15145404a871014c40 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Fri, 22 Apr 2022 09:12:35 +0100 Subject: [PATCH] [ci skip] fix product formula in overflow comment --- X10D.Tests/src/Linq/ByteTests.cs | 2 +- X10D.Tests/src/Linq/Int16Tests.cs | 2 +- X10D.Tests/src/Linq/Int32Tests.cs | 2 +- X10D.Tests/src/Linq/UInt16Tests.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/X10D.Tests/src/Linq/ByteTests.cs b/X10D.Tests/src/Linq/ByteTests.cs index 57e3142..50d2006 100644 --- a/X10D.Tests/src/Linq/ByteTests.cs +++ b/X10D.Tests/src/Linq/ByteTests.cs @@ -31,6 +31,6 @@ public class ByteTests Assert.AreEqual(8, Enumerable.Range(1, 2).Product(Double)); Assert.AreEqual(48, Enumerable.Range(1, 3).Product(Double)); - // Π_(i=1)^(n(i*2)) will overflow at i=4 for byte + // Π_(i=1)^n (2i) will overflow at i=4 for byte } } diff --git a/X10D.Tests/src/Linq/Int16Tests.cs b/X10D.Tests/src/Linq/Int16Tests.cs index 75f658c..67e502e 100644 --- a/X10D.Tests/src/Linq/Int16Tests.cs +++ b/X10D.Tests/src/Linq/Int16Tests.cs @@ -35,6 +35,6 @@ public class Int16Tests Assert.AreEqual(384, Enumerable.Range(1, 4).Product(Double)); Assert.AreEqual(3840, Enumerable.Range(1, 5).Product(Double)); - // Π_(i=1)^(n(i*2)) will overflow at i=6 for short + // Π_(i=1)^n (2i) will overflow at i=6 for short } } diff --git a/X10D.Tests/src/Linq/Int32Tests.cs b/X10D.Tests/src/Linq/Int32Tests.cs index 5b0db1f..33cc4ce 100644 --- a/X10D.Tests/src/Linq/Int32Tests.cs +++ b/X10D.Tests/src/Linq/Int32Tests.cs @@ -38,6 +38,6 @@ public class Int32Tests Assert.AreEqual(10321920, Enumerable.Range(1, 8).Product(Double)); Assert.AreEqual(185794560, Enumerable.Range(1, 9).Product(Double)); - // Π_(i=1)^(n(i*2)) will overflow at i=10 for int + // Π_(i=1)^n (2i) will overflow at i=10 for int } } diff --git a/X10D.Tests/src/Linq/UInt16Tests.cs b/X10D.Tests/src/Linq/UInt16Tests.cs index b5a87c3..bf496e8 100644 --- a/X10D.Tests/src/Linq/UInt16Tests.cs +++ b/X10D.Tests/src/Linq/UInt16Tests.cs @@ -38,6 +38,6 @@ public class UInt16Tests Assert.AreEqual(3840U, Enumerable.Range(1, 5).Product(Double)); Assert.AreEqual(46080U, Enumerable.Range(1, 6).Product(Double)); - // Π_(i=1)^(n(i*2)) will overflow at i=7 for ushort + // Π_(i=1)^n (2i) will overflow at i=7 for ushort } }