diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-19 07:47:07 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-19 07:47:07 +0000 |
| commit | 7e8e68061481bf4a641f4c5b2df435e902eeda58 (patch) | |
| tree | fed3a1b8c969954c23bbe53f740958107edcb171 /sample | |
| parent | f2f2c6d068d85a265b611587f1824bf4b66c47be (diff) | |
| download | ruby-7e8e68061481bf4a641f4c5b2df435e902eeda58.tar.gz ruby-7e8e68061481bf4a641f4c5b2df435e902eeda58.tar.xz ruby-7e8e68061481bf4a641f4c5b2df435e902eeda58.zip | |
* 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
Diffstat (limited to 'sample')
| -rw-r--r-- | sample/test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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) |
