Commit 3ffe8fe1 authored by skandhas's avatar skandhas

add test for Module#remove_class_variable

parent 4eb3ddfd
...@@ -208,6 +208,16 @@ assert('Module#module_eval', '15.2.2.4.35') do ...@@ -208,6 +208,16 @@ assert('Module#module_eval', '15.2.2.4.35') do
Test4ModuleEval.module_eval{ @b } == 12 Test4ModuleEval.module_eval{ @b } == 12
end end
assert('Module#remove_class_variable', '15.2.2.4.39') do
class Test4RemoveClassVariable
@@cv = 99
end
Test4RemoveClassVariable.remove_class_variable(:@@cv) == 99 and
not Test4RemoveClassVariable.class_variables.include? :@@cv
end
# Not ISO specified # Not ISO specified
assert('Module#to_s') do assert('Module#to_s') 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