Revision: 3520 http://trac.macosforge.org/projects/ruby/changeset/3520 Author: lsansonetti@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
participants (1)
-
source_changes@macosforge.org