modify test case to check #1606

parent b87473c2
...@@ -276,16 +276,16 @@ end ...@@ -276,16 +276,16 @@ end
assert('Module.constants', '15.2.2.4.24') do assert('Module.constants', '15.2.2.4.24') do
$n = [] $n = []
module TestA module TestA
Const = 1 C = 1
end end
class TestB class TestB
include TestA include TestA
Const2 = 1 C2 = 1
$n = constants.sort $n = constants.sort
end end
assert_equal [ :Const ], TestA.constants assert_equal [ :C ], TestA.constants
assert_equal [ :Const, :Const2 ], $n assert_equal [ :C, :C2 ], $n
end end
assert('Module#include', '15.2.2.4.27') do assert('Module#include', '15.2.2.4.27') do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment