diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-21 09:20:15 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-21 09:20:15 +0000 |
commit | 0f33376dd63211d6f006dd78064bddc10c7febeb (patch) | |
tree | f299e757e3b79589f549fbfb648a341bb3d8e039 | |
parent | 5b67c8de1a8bfd21b6c29b86462a79ece5aeb33e (diff) | |
download | ruby-0f33376dd63211d6f006dd78064bddc10c7febeb.tar.gz ruby-0f33376dd63211d6f006dd78064bddc10c7febeb.tar.xz ruby-0f33376dd63211d6f006dd78064bddc10c7febeb.zip |
(rb_f_test): fix document. [ruby-dev:28087]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | file.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1399,6 +1399,16 @@ test_sticky(VALUE obj, VALUE fname) * File.identical?(file_1, file_2) => true or false * * Returns <code>true</code> if the named files are identical. + * + * open("a", "w") {} + * p File.identical?("a", "a") #=> true + * p File.identical?("a", "./a") #=> true + * File.link("a", "b") + * p File.identical?("a", "b") #=> true + * File.symlink("a", "c") + * p File.identical?("a", "c") #=> true + * open("d", "w") {} + * p File.identical?("a", "d") #=> false */ static VALUE @@ -3195,7 +3205,7 @@ test_check(int n, int argc, VALUE *argv) * * Tests that take two files: * - * ?- | boolean | True if file1 is a hard link to file2 + * ?- | boolean | True if file1 and file2 are identical * ?= | boolean | True if the modification times of file1 * | | and file2 are equal * ?< | boolean | True if the modification time of file1 |