From 9e10afe1d0ee1fb751182e42044e891b4b13f9a4 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 1 Aug 2017 11:39:18 +0900 Subject: Implements `Module::nesting' (15.2.2.3.2); ref #600, #3200 --- test/t/module.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') diff --git a/test/t/module.rb b/test/t/module.rb index e32cac5f1..107bea875 100644 --- a/test/t/module.rb +++ b/test/t/module.rb @@ -29,6 +29,18 @@ end # TODO not implemented ATM assert('Module.nesting', '15.2.2.3.2') do +assert('Module.nesting', '15.2.2.2.2') do + module Test4ModuleNesting + module Test4ModuleNesting2 + assert_equal [Test4ModuleNesting2, Test4ModuleNesting], + Module.nesting + end + end + module Test4ModuleNesting::Test4ModuleNesting2 + assert_equal [Test4ModuleNesting::Test4ModuleNesting2], Module.nesting + end +end + assert('Module#ancestors', '15.2.2.4.9') do class Test4ModuleAncestors end -- cgit v1.2.3