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

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


The following commit(s) were added to refs/heads/master by this push:
     new e48126ff testGenerateMinMaxLength
e48126ff is described below

commit e48126ffc68de32488efdb918e7ea8213fbf88e6
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Sep 30 16:21:25 2024 -0400

    testGenerateMinMaxLength
---
 src/test/java/org/apache/commons/text/RandomStringGeneratorTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/commons/text/RandomStringGeneratorTest.java 
b/src/test/java/org/apache/commons/text/RandomStringGeneratorTest.java
index 8ac267a1..467826ef 100644
--- a/src/test/java/org/apache/commons/text/RandomStringGeneratorTest.java
+++ b/src/test/java/org/apache/commons/text/RandomStringGeneratorTest.java
@@ -69,7 +69,7 @@ public class RandomStringGeneratorTest {
         final RandomStringGenerator generator = 
RandomStringGenerator.builder().build();
         final String str = generator.generate(minLength, maxLength);
         final int codePointLength = codePointLength(str);
-        assertTrue(codePointLength > 0 && codePointLength < 3);
+        assertTrue(codePointLength >= minLength && codePointLength <= 
maxLength);
     }
 
     @Test

Reply via email to