From 8026ec039a28f2f71993f97fb8fc60e5b04f1693 Mon Sep 17 00:00:00 2001 From: skandhas Date: Thu, 20 Dec 2012 22:23:50 +0800 Subject: add test for Module#class_variable_get --- test/t/module.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/t') 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 -- cgit v1.2.3