summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/t/module.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/t/module.rb b/test/t/module.rb
index e666a1763..c2008cc67 100644
--- a/test/t/module.rb
+++ b/test/t/module.rb
@@ -151,6 +151,14 @@ assert('Module#instance_methods', '15.2.2.4.33') do
r.class == Array and r.include?(:method3) and r.include?(:method2)
end
+assert('Module#module_eval', '15.2.2.4.35') do
+ module Test4ModuleEval
+ @a = 11
+ @b = 12
+ end
+ Test4ModuleEval.module_eval{ @a } == 11 and
+ Test4ModuleEval.module_eval{ @b } == 12
+end
# Not ISO specified