From 7e8e68061481bf4a641f4c5b2df435e902eeda58 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 19 Feb 2002 07:47:07 +0000 Subject: * file.c (path_check_1): do not warn on world writable *parent* directories. * class.c (rb_include_module): should preserve ancestor order in the included class/module. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sample') diff --git a/sample/test.rb b/sample/test.rb index 9778b6e4c..70cd79e9b 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -1242,6 +1242,14 @@ rescue NoMethodError test_ok true end +module M001; end +module M002; end +module M003; include M002; end +module M002; include M001; end +module M003; include M002; end + +test_ok(M003.ancestors == [M003, M002, M001]) + test_check "marshal" $x = [1,2,3,[4,5,"foo"],{1=>"bar"},2.5,fact(30)] $y = Marshal.dump($x) -- cgit