mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00

patch from Jeremy Evans at [ruby-core:31615]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12 lines
324 B
Ruby
12 lines
324 B
Ruby
require 'test/unit'
|
|
require '-test-/bug-3652/bug'
|
|
|
|
class Test_BUG_3652 < Test::Unit::TestCase
|
|
def test_block_call_id
|
|
bug3652 = '[ruby-core:31615]'
|
|
s = "123456789012345678901234"
|
|
assert_equal(s, Bug.str_resize(127, s), bug3652)
|
|
s = "123456789"
|
|
assert_equal(s, Bug.str_resize(127, s), bug3652)
|
|
end
|
|
end
|