Sha256: 521900a5d276db1a34afca4d95edcf8ed8b9a01ef69d3746045d258a98689a20
Contents?: true
Size: 967 Bytes
Versions: 1
Compression:
Stored size: 967 Bytes
Contents
#==============================================================================# # $Id: test_rand.rb 27 2007-08-15 14:35:31Z yuyakato $ #==============================================================================# require File.dirname(__FILE__) + "/test_helper.rb" require File.dirname(__FILE__) + "/../lib/kagemusha/rand" #==============================================================================# class TestKagemushaRand < Test::Unit::TestCase def setup end def test_always musha = Kagemusha::Rand.always(1) assert_equal(Kernel, musha.instance_eval { @klass }) musha.swap { assert_equal(1, rand) assert_equal(1, rand(2)) assert_equal(1, rand(3)) assert_equal(1, rand(4)) assert_equal(1, rand(5)) } end end #==============================================================================# #==============================================================================#
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kagemusha-0.0.1 | test/test_rand.rb |