Skip to content

Commit

Permalink
add assert 'BS Block 34'
Browse files Browse the repository at this point in the history
  • Loading branch information
skandhas committed Nov 23, 2012
1 parent a316e92 commit 385f129
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/t/bs_block.rb
Expand Up @@ -402,3 +402,17 @@ def self.test
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

0 comments on commit 385f129

Please sign in to comment.