summaryrefslogtreecommitdiffhomepage
path: root/test/t/module.rb
diff options
context:
space:
mode:
authorksss <[email protected]>2014-05-19 19:28:42 +0900
committerksss <[email protected]>2014-05-19 19:28:42 +0900
commitffbf90bdc828068178459e4577b8bba6f1452778 (patch)
tree459b9de2bb05da37328237c1801db5e3cb6608a1 /test/t/module.rb
parentc4268f67d052aa55f9cce3307d846285f1e6519b (diff)
downloadmruby-ffbf90bdc828068178459e4577b8bba6f1452778.tar.gz
mruby-ffbf90bdc828068178459e4577b8bba6f1452778.zip
Implement Module#initialize (15.2.2.4.31)
Diffstat (limited to 'test/t/module.rb')
-rw-r--r--test/t/module.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/t/module.rb b/test/t/module.rb
index 2072f1f3c..806824b70 100644
--- a/test/t/module.rb
+++ b/test/t/module.rb
@@ -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