1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_file.rb: check File#chown(nil,nil). [ruby-dev:27140]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2005-09-22 21:01:58 +00:00
parent ec4689b164
commit f535461975
2 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri Sep 23 06:01:30 2005 Minero Aoki <aamine@loveruby.net>
* test/ruby/test_file.rb: check File#chown(nil,nil).
[ruby-dev:27140]
Fri Sep 23 05:57:23 2005 Minero Aoki <aamine@loveruby.net>
* ext/ripper: refactoring code generation tools. [ruby-dev:27247]

View file

@ -99,4 +99,19 @@ class TestFile < Test::Unit::TestCase
assert_equal(?a, f.getc)
end
def test_s_chown
assert_nothing_raised { File.chown -1, -1 }
assert_nothing_raised { File.chown nil, nil }
end
def test_chown
assert_nothing_raised {
File.open(__FILE__) {|f| f.chown -1, -1 }
}
# [ruby-dev:27140]
assert_nothing_raised {
File.open(__FILE__) {|f| f.chown nil, nil }
}
end
end