-
Notifications
You must be signed in to change notification settings - Fork 101
Add StringCombinableArbitrary for easy efficient customisation #1179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
e5e944e
to
3ff3180
Compare
* @return the pattern matched StringCombinableArbitrary | ||
*/ | ||
default StringCombinableArbitrary pattern(int tries, String stringPattern) { | ||
Pattern pattern = Pattern.compile(stringPattern); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about adding method taking Pattern
class? It seems immutable
@@ -0,0 +1 @@ | |||
com.navercorp.fixturemonkey.api.jqwik.JqwikStringCombinableArbitrary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems it's already loaded (it's inside the api module). Is that ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I test it, SPI does not load the implementation implicitly.
It should specify the implementation in META-INF/services
.
I also did not find the following specification in the document.
https://docs.oracle.com/javase/tutorial/sound/SPI-intro.html

|
||
override fun alphabetic(): StringCombinableArbitrary = KotestStringCombinableArbitrary( | ||
Arb.string( | ||
codepoints = Arb.codepoints().filter { it.value.toChar() in 'a'..'z' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok to include lower case only?
6629cd3
to
f581ee8
Compare
f581ee8
to
b115253
Compare
Summary
Add StringCombinableArbitrary for easy efficient customisation
(Optional): Description
providing below APIs to customize the randomly generated String
How Has This Been Tested?
Is the Document updated?
Later