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 | 80a97f173f109364b5457b45f53c6d91102c242f (patch) | |
tree | e5c75ec3d25a02e65af59a480ac9bc181eb612ff /sample | |
parent | cd6f64e37cba29badce8260a68747b54fc6a5f9e (diff) |
* signal.c (trap): return "DEFAULT" and "IGNORE" respectively for
previous sighandler SIG_DFL and SIG_IGN. [ruby-talk:67860]
git-svn-id: svn+ssh://ci.ruby-lang.org/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 247518c75e..fb7c0f6757 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) |