diff options
| author | skandhas <[email protected]> | 2012-12-20 22:23:50 +0800 |
|---|---|---|
| committer | skandhas <[email protected]> | 2012-12-20 22:23:50 +0800 |
| commit | 8026ec039a28f2f71993f97fb8fc60e5b04f1693 (patch) | |
| tree | c2cc4e561f716d93a401b1b6d1933b9c2a68c156 /test | |
| parent | 2ca47bba8f509337f3b3fb22ad6c8bac46e542ac (diff) | |
| download | mruby-8026ec039a28f2f71993f97fb8fc60e5b04f1693.tar.gz mruby-8026ec039a28f2f71993f97fb8fc60e5b04f1693.zip | |
add test for Module#class_variable_get
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/module.rb | 8 |
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 |
