diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-25 15:25:18 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-25 15:25:18 +0000 |
| commit | 7c2dc8a6ff013cebfc867e630b7bcf26f6184c06 (patch) | |
| tree | e5c75ec3d25a02e65af59a480ac9bc181eb612ff /sample | |
| parent | 44fdfd5e1067d886ab10b8271d2dceab04c9129a (diff) | |
| download | ruby-7c2dc8a6ff013cebfc867e630b7bcf26f6184c06.tar.gz ruby-7c2dc8a6ff013cebfc867e630b7bcf26f6184c06.tar.xz ruby-7c2dc8a6ff013cebfc867e630b7bcf26f6184c06.zip | |
* signal.c (trap): return "DEFAULT" and "IGNORE" respectively for
previous sighandler SIG_DFL and SIG_IGN. [ruby-talk:67860]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
| -rw-r--r-- | sample/test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sample/test.rb b/sample/test.rb index 247518c75..fb7c0f675 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -248,6 +248,11 @@ f = lambda {|r,*l| test_ok([] == r); test_ok([1] == l)} f.call([], *[1]) f.yield([], *[1]) +a = [42,55] +lambda{|x| test_ok([42,55] == x)}.call(a) +lambda{|x,| test_ok([42,55] == x)}.call(a) +lambda{|*x| test_ok([[42,55]] == x)}.call(a) + a,=*[1] test_ok(a == 1) |
