diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-04 22:22:16 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-04 22:22:16 +0900 |
| commit | 001fb58698f8ea06c05c704d7dd13c986b5791c0 (patch) | |
| tree | 926cb2db651764e978e67522c586732589dbd622 | |
| parent | 01a21085f6348b1f1b070f2c64a6ed71b6d5afce (diff) | |
| parent | 670a457e062fcf376a5c418ad4babcf0d928af7e (diff) | |
| download | mruby-001fb58698f8ea06c05c704d7dd13c986b5791c0.tar.gz mruby-001fb58698f8ea06c05c704d7dd13c986b5791c0.zip | |
Merge branch 'test' of https://github.com/mirichi/mruby into mirichi-test
| -rw-r--r-- | test/t/bs_block.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/t/bs_block.rb b/test/t/bs_block.rb index 995e52559..f4e4da375 100644 --- a/test/t/bs_block.rb +++ b/test/t/bs_block.rb @@ -520,3 +520,15 @@ assert('BS Block 38') do assert_equal [1,2,3,4,5], iter{|a,b,c=:c,d,e| [a,b,c,d,e]} end + +assert('BS Block 39') do + def iter + yield 1 + end + + assert_equal([1, 2, nil]) do + iter{|a, b=2, c| + [a, b, c] + } + end +end |
