mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 11:03:58 +02:00

after unpacking. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
21 lines
385 B
Ruby
21 lines
385 B
Ruby
require 'test/unit'
|
|
require "-test-/st/numhash"
|
|
|
|
class Bug::StNumHash
|
|
class Test_NumHash < Test::Unit::TestCase
|
|
def setup
|
|
@tbl = Bug::StNumHash.new
|
|
5.times {|i| @tbl[i] = i}
|
|
end
|
|
|
|
def test_check
|
|
keys = []
|
|
@tbl.each do |k, v, t|
|
|
keys << k
|
|
t[5] = 5 if k == 3
|
|
true
|
|
end
|
|
assert_equal([*0..5], keys)
|
|
end
|
|
end
|
|
end
|