From 80a97f173f109364b5457b45f53c6d91102c242f Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 25 Mar 2003 15:25:18 +0000 Subject: * 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 --- sample/test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sample/test.rb') 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) -- cgit v1.2.3