diff options
Diffstat (limited to 'mrbgems/mruby-proc-ext/test/proc.rb')
| -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 |
