diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-09-02 22:19:15 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-09-02 22:19:15 +0900 |
| commit | 476af3c64726fed823e4a1fdc316f0780f340246 (patch) | |
| tree | 61be82650f95b6b98482371611d029bbc70b9ed9 /mrbgems/mruby-proc-ext/test/proc.rb | |
| parent | ab99e2c293167935033016750c010047a2aba76a (diff) | |
| parent | 35deaae7768b1f5404cf00c1ca85d9d770062413 (diff) | |
| download | mruby-476af3c64726fed823e4a1fdc316f0780f340246.tar.gz mruby-476af3c64726fed823e4a1fdc316f0780f340246.zip | |
Merge pull request #3802 from christopheraue/proc_break_tests
Tested local jump errors caused by break in a proc
Diffstat (limited to 'mrbgems/mruby-proc-ext/test/proc.rb')
| -rw-r--r-- | mrbgems/mruby-proc-ext/test/proc.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/mruby-proc-ext/test/proc.rb b/mrbgems/mruby-proc-ext/test/proc.rb index 424c0bc1d..037d8d124 100644 --- a/mrbgems/mruby-proc-ext/test/proc.rb +++ b/mrbgems/mruby-proc-ext/test/proc.rb @@ -66,6 +66,10 @@ end assert('Kernel#proc') do assert_true !proc{|a|}.lambda? + + assert_raise LocalJumpError do + proc{ break }.call + end end assert('mrb_proc_new_cfunc_with_env') do |
