[macruby-changes] [3520] MacRuby/trunk/spec/frozen/core/random/rand_spec.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 12 22:26:25 PST 2010


Revision: 3520
          http://trac.macosforge.org/projects/ruby/changeset/3520
Author:   lsansonetti at apple.com
Date:     2010-02-12 22:26:25 -0800 (Fri, 12 Feb 2010)
Log Message:
-----------
fix badly written specs

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/core/random/rand_spec.rb

Modified: MacRuby/trunk/spec/frozen/core/random/rand_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/core/random/rand_spec.rb	2010-02-13 06:25:58 UTC (rev 3519)
+++ MacRuby/trunk/spec/frozen/core/random/rand_spec.rb	2010-02-13 06:26:25 UTC (rev 3520)
@@ -61,13 +61,13 @@
     it "returns a Fixnum greater than or equal to 0" do
       prng = Random.new
       ints = 20.times.map { prng.rand(5) }
-      ints.min.should == 0
+      ints.min.should >= 0
     end
 
     it "returns a Fixnum less than the argument" do
       prng = Random.new
       ints = 20.times.map { prng.rand(5) }
-      ints.max.should == 4
+      ints.max.should <= 4
     end
 
     it "returns the same sequence for a given seed" do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100212/3be3dd68/attachment.html>


More information about the macruby-changes mailing list