Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #551 from jstepien/random-rand
Random#rand
- Loading branch information
Showing
with
69 additions
and 31 deletions.
@@ -1,29 +1,6 @@ | ||
fails:Random.rand returns a Float if no max argument is passed | ||
fails:Random.rand returns a Float >= 0 if no max argument is passed | ||
fails:Random.rand returns a Float < 1 if no max argument is passed | ||
fails:Random.rand returns the same sequence for a given seed if no max argument is passed | ||
fails:Random.rand returns a Integer if an Integer argument is passed | ||
fails:Random.rand returns an Integer >= 0 if an Integer argument is passed | ||
fails:Random.rand returns an Integer < the max argument if an Integer argument is passed | ||
fails:Random.rand returns the same sequence for a given seed if an Integer argument is passed | ||
fails:Random.rand coerces arguments to Integers with #to_int | ||
fails:Random#rand with Fixnum returns an Integer | ||
fails:Random#rand with Fixnum returns a Fixnum greater than or equal to 0 | ||
fails:Random#rand with Fixnum returns a Fixnum less than the argument | ||
fails:Random#rand with Fixnum returns the same sequence for a given seed | ||
fails:Random#rand with Fixnum eventually returns all possible values | ||
fails:Random#rand with Bignum typically returns a Bignum | ||
fails:Random#rand with Bignum returns a Bignum greater than or equal to 0 | ||
fails:Random#rand with Bignum returns a Bignum less than the argument | ||
fails:Random#rand with Bignum returns the same sequence for a given seed | ||
fails:Random#rand with Float returns a Float | ||
fails:Random#rand with Float returns a Float greater than or equal to 0.0 | ||
fails:Random#rand with Float returns a Float less than the argument | ||
fails:Random#rand with Float returns the same sequence for a given seed | ||
fails:Random#rand with Range returns an element from the Range | ||
fails:Random#rand with Range returns an object that is a member of the Range | ||
fails:Random#rand with Range works with inclusive ranges | ||
fails:Random#rand with Range works with exclusive ranges | ||
fails:Random#rand with Range returns the same sequence for a given seed | ||
fails:Random#rand with Range eventually returns all possible values | ||
fails:Random#rand with Range considers Integers as Floats if one end point is a float | ||
fails:Random#rand with Bignum raises an ArgumentError when the argument is negative | ||
fails:Random#rand with Range raises an ArgumentError when the endpoint lacks #+ and #- methods |