Skip to content

Instantly share code, notes, and snippets.

@chkpnt

chkpnt/Test.java

Created Jan 20, 2021
Embed
What would you like to do?
jqwik Arbitrary for UUIDs
class Test {
@Provide
Arbitrary<UUID> uuids() {
return Arbitraries
.longs()
.tuple2()
.map(longs -> new UUID(longs.get1(), longs.get2()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment