Commit bdd0cc01 authored by skandhas's avatar skandhas

add test for Module#class_variable_defined?

parent 3f54c905
...@@ -46,6 +46,15 @@ assert('Module#class_eval', '15.2.2.4.15') do ...@@ -46,6 +46,15 @@ assert('Module#class_eval', '15.2.2.4.15') do
r.class == Array and r.include?(:method1) r.class == Array and r.include?(:method1)
end end
assert('Module#class_variable_defined?', '15.2.2.4.16') do
class Test4ClassVariableDefined
@@cv = 99
end
Test4ClassVariableDefined.class_variable_defined?(:@@cv) and
not Test4ClassVariableDefined.class_variable_defined?(:@@noexisting)
end
assert('Module#class_variable_get', '15.2.2.4.17') do assert('Module#class_variable_get', '15.2.2.4.17') do
class Test4ClassVariableGet class Test4ClassVariableGet
@@cv = 99 @@cv = 99
......
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