diff options
| author | Christopher Aue <[email protected]> | 2017-08-30 12:22:14 +0200 |
|---|---|---|
| committer | Christopher Aue <[email protected]> | 2017-08-30 12:25:55 +0200 |
| commit | 35deaae7768b1f5404cf00c1ca85d9d770062413 (patch) | |
| tree | f676130d9208fd0575bd39e1cecef5e5831aa11a /mrbgems/mruby-proc-ext | |
| parent | 71357ff1d8bd6ec0b3e7cce364c2513d6d3f7a77 (diff) | |
| download | mruby-35deaae7768b1f5404cf00c1ca85d9d770062413.tar.gz mruby-35deaae7768b1f5404cf00c1ca85d9d770062413.zip | |
Tested LocalJumpErrors caused by break in a proc
Diffstat (limited to 'mrbgems/mruby-proc-ext')
| -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 |
