Created
July 18, 2021 09:57
-
-
Save sergio-sastre/54ddae6cda8f10bf04baa81cdbbc49e9 to your computer and use it in GitHub Desktop.
Multiplying the quality of your Unit Tests (Part2) with PBT - NoUpperCase generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Provide | |
fun noUpperCase(): Arbitrary<String> = | |
Arbitraries.strings().ascii().filter { it.matches("[^A-Z]".toRegex()) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment