You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/05/23 12:29:14 UTC

[commons-rng] branch master updated: Method name typo

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git


The following commit(s) were added to refs/heads/master by this push:
     new 8176b8cc Method name typo
8176b8cc is described below

commit 8176b8cca40269f90bd2351a6f353258d40fb21b
Author: aherbert <ah...@apache.org>
AuthorDate: Mon May 23 13:29:06 2022 +0100

    Method name typo
---
 .../distribution/AliasMethodDiscreteSamplerTest.java       | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/AliasMethodDiscreteSamplerTest.java b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/AliasMethodDiscreteSamplerTest.java
index 866968d6..a1f0189e 100644
--- a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/AliasMethodDiscreteSamplerTest.java
+++ b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/AliasMethodDiscreteSamplerTest.java
@@ -32,41 +32,41 @@ import java.util.Arrays;
  */
 class AliasMethodDiscreteSamplerTest {
     @Test
-    void testConstructorThrowsWithNullProbabilites() {
+    void testConstructorThrowsWithNullProbabilities() {
         Assertions.assertThrows(IllegalArgumentException.class, () -> createSampler(null));
     }
 
     @Test
-    void testConstructorThrowsWithZeroLengthProbabilites() {
+    void testConstructorThrowsWithZeroLengthProbabilities() {
         Assertions.assertThrows(IllegalArgumentException.class, () -> createSampler(new double[0]));
     }
 
     @Test
-    void testConstructorThrowsWithNegativeProbabilites() {
+    void testConstructorThrowsWithNegativeProbabilities() {
         Assertions.assertThrows(IllegalArgumentException.class,
             () -> createSampler(new double[] {-1, 0.1, 0.2}));
     }
 
     @Test
-    void testConstructorThrowsWithNaNProbabilites() {
+    void testConstructorThrowsWithNaNProbabilities() {
         Assertions.assertThrows(IllegalArgumentException.class,
             () -> createSampler(new double[] {0.1, Double.NaN, 0.2}));
     }
 
     @Test
-    void testConstructorThrowsWithInfiniteProbabilites() {
+    void testConstructorThrowsWithInfiniteProbabilities() {
         Assertions.assertThrows(IllegalArgumentException.class,
             () -> createSampler(new double[] {0.1, Double.POSITIVE_INFINITY, 0.2}));
     }
 
     @Test
-    void testConstructorThrowsWithInfiniteSumProbabilites() {
+    void testConstructorThrowsWithInfiniteSumProbabilities() {
         Assertions.assertThrows(IllegalArgumentException.class,
             () -> createSampler(new double[] {Double.MAX_VALUE, Double.MAX_VALUE}));
     }
 
     @Test
-    void testConstructorThrowsWithZeroSumProbabilites() {
+    void testConstructorThrowsWithZeroSumProbabilities() {
         Assertions.assertThrows(IllegalArgumentException.class, () -> createSampler(new double[4]));
     }