1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2018-08-03 16:19:40 +00:00
parent aeeaadaad0
commit b53cf149ad
246 changed files with 9108 additions and 548 deletions

View file

@ -0,0 +1,2 @@
block = ScratchPad.recorded
block.call

View file

@ -0,0 +1,7 @@
block = ScratchPad.recorded
ScratchPad.record(block.call)
module ModuleSpecs::Autoload
class DuringAutoload
end
end

View file

@ -0,0 +1,4 @@
module ModuleSpecs::Autoload
class AutoloadDuringRequire
end
end

View file

@ -0,0 +1,3 @@
ScratchPad.record(:exception)
raise 'intentional error to test failure conditions during autoloading'

View file

@ -0,0 +1,8 @@
module ModuleSpecs::Autoload
module GoodParent
class Nested
end
end
end
ScratchPad.record(:loaded)

View file

@ -1 +1,2 @@
# does not define ModuleSpecs::Autoload::O
ScratchPad << :loaded

View file

@ -0,0 +1,2 @@
ScratchPad << :raise
raise "exception during autoload"

View file

@ -1,8 +0,0 @@
module ModuleSpecs
module Autoload
class PP
class QQ
end
end
end
end

View file

@ -0,0 +1,6 @@
autoload :CSAutoloadA, fixture(__FILE__, 'constants_autoload_a.rb')
autoload :CSAutoloadB, fixture(__FILE__, 'constants_autoload_b.rb')
autoload :CSAutoloadC, fixture(__FILE__, 'constants_autoload_c.rb')
module CSAutoloadD
autoload :InnerModule, fixture(__FILE__, 'constants_autoload_d.rb')
end

View file

@ -0,0 +1,2 @@
module CSAutoloadA
end

View file

@ -0,0 +1,2 @@
module CSAutoloadB
end

View file

@ -0,0 +1,3 @@
module CSAutoloadC
CONST = 7
end

View file

@ -0,0 +1,4 @@
module CSAutoloadD
module InnerModule
end
end