This is an automated email from the ASF dual-hosted git repository. dcapwell pushed a commit to branch 18344 in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
commit 9bf0f2c9b79217139b5a73ace20d87e654db48e3 Author: David Capwell <dcapw...@gmail.com> AuthorDate: Wed Apr 12 09:36:02 2023 -0700 added asciiVisible --- accord-core/src/test/java/accord/utils/Gens.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/accord-core/src/test/java/accord/utils/Gens.java b/accord-core/src/test/java/accord/utils/Gens.java index 7cb12f74..55c4644c 100644 --- a/accord-core/src/test/java/accord/utils/Gens.java +++ b/accord-core/src/test/java/accord/utils/Gens.java @@ -235,6 +235,16 @@ public class Gens { return new SizeBuilder<>(this::ascii); } + public Gen<String> asciiVisible(Gen.IntGen sizes) + { + return betweenCodePoints(sizes, 33, 127); + } + + public SizeBuilder<String> asciiVisible() + { + return new SizeBuilder<>(this::asciiVisible); + } + public Gen<String> betweenCodePoints(Gen.IntGen sizes, int min, int max) { Gen.IntGen codePointGen = ints().between(min, max).filter(Character::isDefined); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org