mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* load.c (rb_feature_provided): fixed for autoloading extension
library without suffix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bc664b878c
commit
31a6d50863
3 changed files with 20 additions and 2 deletions
12
test/ruby/test_autoload.rb
Normal file
12
test/ruby/test_autoload.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
require 'test/unit'
|
||||
require_relative 'envutil'
|
||||
|
||||
class TestAutoload < Test::Unit::TestCase
|
||||
def test_autoload_so
|
||||
# Continuation is always available, unless excluded intentionally.
|
||||
assert_in_out_err([], <<-INPUT, [], [])
|
||||
autoload :Continuation, "continuation"
|
||||
begin Continuation; rescue LoadError; end
|
||||
INPUT
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue