From 7c2dc8a6ff013cebfc867e630b7bcf26f6184c06 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: http://svn.ruby-lang.org/repos/ruby/trunk@3614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sample') 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) -- cgit