Implement Module#initialize (15.2.2.4.31)

This commit is contained in:
ksss
2014-05-19 19:28:42 +09:00
parent c4268f67d0
commit ffbf90bdc8
2 changed files with 19 additions and 0 deletions
+6
View File
@@ -340,6 +340,12 @@ assert('Module#included_modules', '15.2.2.4.30') do
assert_true r.include?(Test4includedModules)
end
assert('Module#initialize', '15.2.2.4.31') do
assert_kind_of Module, Module.new
mod = Module.new { def hello; "hello"; end }
assert_equal [:hello], mod.instance_methods
end
assert('Module#instance_methods', '15.2.2.4.33') do
module Test4InstanceMethodsA
def method1() end