Skip to content
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

(U)Int arbitrary implementation provides limited values with .proliferate(withSize:) #307

Open
nesevis opened this issue Oct 19, 2021 · 0 comments

Comments

@nesevis
Copy link

nesevis commented Oct 19, 2021

Version

077c096c3ddfc38db223ac8e525ad16ffb987138

Environment

  • macOS 11.6
  • Xcode 13.1RC
  • 2019 Intel 16" MBP

Description

When combined with proliferate(withSize:), (U)Int[8|16|32|64].arbitrary will only generate values from -30 to 30 if signed, and 0 to 30 if unsigned.

Steps To Reproduce

Set(UInt.arbitrary.proliferate(withSize: 2000).generate).sorted()

Expected Result

Random values in a wider range

Actual Result

Very limited range of random values

Additional information

None

@nesevis nesevis changed the title (U)Int arbitrary implementation provides limited values with .proliferateWithSize (U)Int arbitrary implementation provides limited values with .proliferate(withSize:) Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant