Skip to content

Instantly share code, notes, and snippets.

@sergio-sastre
Created July 18, 2021 09:57
Show Gist options
  • Save sergio-sastre/54ddae6cda8f10bf04baa81cdbbc49e9 to your computer and use it in GitHub Desktop.
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
@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