diff options
| author | mirichi <[email protected]> | 2014-04-28 13:49:50 +0900 |
|---|---|---|
| committer | mirichi <[email protected]> | 2014-04-28 13:49:50 +0900 |
| commit | 670a457e062fcf376a5c418ad4babcf0d928af7e (patch) | |
| tree | 0cad48cb123149af02fe71895c43c5c23f1d3bd2 /test | |
| parent | 220f3124b9bd7a993e78b5832d0501209236487f (diff) | |
| download | mruby-670a457e062fcf376a5c418ad4babcf0d928af7e.tar.gz mruby-670a457e062fcf376a5c418ad4babcf0d928af7e.zip | |
add block argument test #2144
Diffstat (limited to '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 0a58741e3..3869d5c54 100644 --- a/test/t/bs_block.rb +++ b/test/t/bs_block.rb @@ -512,3 +512,15 @@ assert('BS Block 37') do end end +assert('BS Block 38') do + def iter + yield 1 + end + + assert_equal([1, 2, nil]) do + iter{|a, b=2, c| + [a, b, c] + } + end +end + |
