diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-14 11:27:41 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-14 11:27:41 +0900 |
| commit | 10459a5eb2c9a4f47b03321add4421bf6f637bf3 (patch) | |
| tree | 73ea2bd087f27d8302a9861bd4a6751941aa539e /mrbgems/mruby-proc-ext/test | |
| parent | e1b84143c6afefa5aa7edf7c02c019c6c4a4c1d4 (diff) | |
| parent | 5073d14e280a82e4cb4e41692154de825b07b5e9 (diff) | |
| download | mruby-10459a5eb2c9a4f47b03321add4421bf6f637bf3.tar.gz mruby-10459a5eb2c9a4f47b03321add4421bf6f637bf3.zip | |
Merge branch 'dump_lv' of https://github.com/take-cheeze/mruby into take-cheeze-dump_lv
Diffstat (limited to 'mrbgems/mruby-proc-ext/test')
| -rw-r--r-- | mrbgems/mruby-proc-ext/test/proc.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mrbgems/mruby-proc-ext/test/proc.rb b/mrbgems/mruby-proc-ext/test/proc.rb index 0f5ecfb94..a5611e586 100644 --- a/mrbgems/mruby-proc-ext/test/proc.rb +++ b/mrbgems/mruby-proc-ext/test/proc.rb @@ -74,3 +74,11 @@ assert('mrb_cfunc_env_get') do assert_equal 1, t.get_int(1) end + +assert('Kernel.local_variables') do + a, b = 0, 1 + a += b + + vars = Kernel.local_variables.sort + assert_equal [:a, :b, :vars], vars +end |
