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

[SR-8152] Enhance test coverage for random APIs in stdlib #50684

Open
stephentyrone opened this issue Jun 29, 2018 · 1 comment
Open

[SR-8152] Enhance test coverage for random APIs in stdlib #50684

stephentyrone opened this issue Jun 29, 2018 · 1 comment
Labels
improvement standard library Area: Standard library umbrella

Comments

@stephentyrone
Copy link
Member

Previous ID SR-8152
Radar None
Original Reporter @stephentyrone
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Improvement
Assignee None
Priority Medium

md5: a42c9958de39cd92225c22bb86a62c2f

Issue Description:

It looks fairly sparse at the moment, and some fundamental APIs appear to be totally untested, for example .next(upperBound: ).

We should have at least some basic testing that the results are in the specified ranges and that no obvious modulo bias occurs.

There should probably also be some longer running tests that validate statistical properties more carefully, but those likely shouldn't be part of the basic test set (do we need to figure out where to put them, or is there already somewhere appropriate? We'll probably want to include tests for floating-point binary <-> decimal conversion and a few other things in whatever we do for longer-running checks).

@stephentyrone
Copy link
Member Author

CC @natecook1000 Am I just not finding these?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant