diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-20 16:22:11 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-20 16:22:11 +0900 |
| commit | 929328ad3bfc3f7b0e5d01b707098a93038f3413 (patch) | |
| tree | d08842412d846641986d74b1637393bd12a3f272 /test | |
| parent | 3cbae5354149d311f6740c99474a96f4d1d8bca1 (diff) | |
| parent | c4a225f0be7281ed2d303c908aed2c327b37a572 (diff) | |
| download | mruby-929328ad3bfc3f7b0e5d01b707098a93038f3413.tar.gz mruby-929328ad3bfc3f7b0e5d01b707098a93038f3413.zip | |
Merge pull request #2295 from ksss/module-initialize
Implement Module#initialize (15.2.2.4.31)
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/module.rb | 6 |
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 |
