diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-14 17:38:27 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-14 17:38:27 +0900 |
| commit | 27df1a84bc5310bcd32d90b7157a3ad46ef3ac76 (patch) | |
| tree | 8e7a3c7c64ac392e6dbbb6ef587e7abffdc8cd18 /mrbgems/mruby-proc-ext/test | |
| parent | 232ec102d6264cd5e79cf4e900a5cc946ca76a67 (diff) | |
| download | mruby-27df1a84bc5310bcd32d90b7157a3ad46ef3ac76.tar.gz mruby-27df1a84bc5310bcd32d90b7157a3ad46ef3ac76.zip | |
Kernel.local_variables to list UPVAR as well
Diffstat (limited to 'mrbgems/mruby-proc-ext/test')
| -rw-r--r-- | mrbgems/mruby-proc-ext/test/proc.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mrbgems/mruby-proc-ext/test/proc.rb b/mrbgems/mruby-proc-ext/test/proc.rb index a5611e586..4da98de05 100644 --- a/mrbgems/mruby-proc-ext/test/proc.rb +++ b/mrbgems/mruby-proc-ext/test/proc.rb @@ -81,4 +81,10 @@ assert('Kernel.local_variables') do vars = Kernel.local_variables.sort assert_equal [:a, :b, :vars], vars + + proc { + c = 2 + vars = Kernel.local_variables.sort + assert_equal [:a, :b, :c, :vars], vars + }.call end |
