summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-12-20 07:35:34 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2012-12-20 07:35:34 -0800
commite48ed9c9649340544156dba57e3a6f29f536066b (patch)
tree6d4e2ebcc3332897df0d7abc1a2bca9f8516d566 /test
parent3c28241bd76466bafec5555028283e3fc6f2799a (diff)
parente6a47323b8d67fdf85f095c30b2d66a00d2d2ca5 (diff)
downloadmruby-e48ed9c9649340544156dba57e3a6f29f536066b.tar.gz
mruby-e48ed9c9649340544156dba57e3a6f29f536066b.zip
Merge pull request #655 from skandhas/pr-add-Module_class_variable_get
Add Module#class_variable_get for mruby
Diffstat (limited to 'test')
-rw-r--r--test/t/module.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/t/module.rb b/test/t/module.rb
index 5e825c6b5..fbc93eb08 100644
--- a/test/t/module.rb
+++ b/test/t/module.rb
@@ -46,6 +46,14 @@ assert('Module#class_eval', '15.2.2.4.15') do
r.class == Array and r.include?(:method1)
end
+assert('Module#class_variable_get', '15.2.2.4.17') do
+ class Test4ClassVariableGet
+ @@cv = 99
+ end
+
+ Test4ClassVariableGet.class_variable_get(:@@cv) == 99
+end
+
assert('Module#class_variables', '15.2.2.4.19') do
class Test4ClassVariables1