forked from topazproject/topaz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request topazproject#551 from jstepien/random-rand
Random#rand
- Loading branch information
Showing
2 changed files
with
69 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters