зеркало из https://github.com/github/ruby.git
* test/pathname/test_pathname.rb (test_kernel_open): use
File.identical?. [ruby-talk:171804] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7c52d5f8cf
Коммит
c7f66bdef9
|
@ -1,3 +1,9 @@
|
|||
Wed Dec 21 12:12:21 2005 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* test/pathname/test_pathname.rb (test_kernel_open): use
|
||||
File.identical?.
|
||||
[ruby-talk:171804]
|
||||
|
||||
Tue Dec 20 22:41:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval.c (eval_under_i): evaluate source in caller's frame.
|
||||
|
|
|
@ -450,12 +450,8 @@ class TestPathname < Test::Unit::TestCase
|
|||
|
||||
def test_kernel_open
|
||||
count = 0
|
||||
stat1 = File.stat(__FILE__)
|
||||
result = Kernel.open(Pathname.new(__FILE__)) {|f|
|
||||
stat2 = f.stat
|
||||
assert_equal(stat1.dev, stat2.dev)
|
||||
assert_equal(stat1.ino, stat2.ino)
|
||||
assert_equal(stat1.size, stat2.size)
|
||||
assert(File.identical?(__FILE__, f))
|
||||
count += 1
|
||||
2
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче