diff options
| author | skandhas <[email protected]> | 2012-11-23 16:22:24 +0800 |
|---|---|---|
| committer | skandhas <[email protected]> | 2012-11-23 16:22:24 +0800 |
| commit | 385f129acaa1c84f2d61026b5b240e5f3f70058a (patch) | |
| tree | 1ba757435e88220b9a489b29e9da4c9b86fb58c8 /test | |
| parent | a316e92da3d9e54c09806f2e231a4c0eed5a8c7d (diff) | |
| download | mruby-385f129acaa1c84f2d61026b5b240e5f3f70058a.tar.gz mruby-385f129acaa1c84f2d61026b5b240e5f3f70058a.zip | |
add assert 'BS Block 34'
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/bs_block.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/t/bs_block.rb b/test/t/bs_block.rb index ad661720b..3bd200b4a 100644 --- a/test/t/bs_block.rb +++ b/test/t/bs_block.rb @@ -402,3 +402,17 @@ assert("BS Block 33") do end TestReturnFromNestedBlock.test == :ok end + +assert("BS Block 34") do + module TestReturnFromNestedBlock_BSBlock34 + def self.test + 1.times do + while true + return :ok + end + end + :bad + end + end + TestReturnFromNestedBlock_BSBlock34.test == :ok +end |
