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 #515 from jstepien/kernel-rand
Kernel.rand nearly passes the spec
- Loading branch information
Showing
with
13 additions
and 9 deletions.
- +13 −0 lib-topaz/kernel.rb
- +0 −9 spec/tags/core/kernel/rand_tags.txt
@@ -1,10 +1 @@ | ||
fails:Kernel.rand is a private method | ||
fails:Kernel.rand returns a float if no argument is passed | ||
fails:Kernel.rand returns an integer for an integer argument | ||
fails:Kernel.rand returns an integer for a float argument greater than 1 | ||
fails:Kernel.rand returns a float for an argument between -1 and 1 | ||
fails:Kernel.rand ignores the sign of the argument | ||
fails:Kernel.rand never returns a value greater or equal to 1.0 with no arguments | ||
fails:Kernel.rand never returns a value greater or equal to any passed in max argument | ||
fails:Kernel.rand calls to_int on its argument | ||
fails:Kernel.rand returns a float for an range argument where max is < 1 |