diff options
| author | skandhas <[email protected]> | 2012-11-27 16:02:45 +0800 |
|---|---|---|
| committer | skandhas <[email protected]> | 2012-11-27 16:02:45 +0800 |
| commit | 861bcad53a4f4c47942ba5ab0155c1594829ebd1 (patch) | |
| tree | abb6e9bb96523eb95b4d36543077771c6378b147 /test | |
| parent | 940eb786e4bfcd747480b2d3bffe541b537fb3fd (diff) | |
| download | mruby-861bcad53a4f4c47942ba5ab0155c1594829ebd1.tar.gz mruby-861bcad53a4f4c47942ba5ab0155c1594829ebd1.zip | |
add Module#module_eval test
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 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 |
