summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-12-25 04:35:50 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2012-12-25 04:35:50 -0800
commitc0af042603a0bc0b65ad238299d61be45ef963ff (patch)
tree3e071f2ebecb51f9a225759596ec8c3eb6cd78c2 /test
parent74554e041a96be45dc64352e905107f0b394a673 (diff)
parent3ffe8fe105adfb5df81e7da2996a01e576ed41f9 (diff)
downloadmruby-c0af042603a0bc0b65ad238299d61be45ef963ff.tar.gz
mruby-c0af042603a0bc0b65ad238299d61be45ef963ff.zip
Merge pull request #671 from skandhas/pr-add-Module_remove_class_variable
Add Module#remove_class_variable for mruby.
Diffstat (limited to 'test')
-rw-r--r--test/t/module.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/t/module.rb b/test/t/module.rb
index b3b1ccf1a..deacb3309 100644
--- a/test/t/module.rb
+++ b/test/t/module.rb
@@ -208,6 +208,16 @@ assert('Module#module_eval', '15.2.2.4.35') do
Test4ModuleEval.module_eval{ @b } == 12
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
assert('Module#to_s') do