ruby-changes:48959
From: nobu <ko1@a...>
Date: Fri, 8 Dec 2017 15:24:26 +0900 (JST)
Subject: [ruby-changes:48959] nobu:r61078 (trunk): test_file_exhaustive.rb: fix arguments order
nobu 2017-12-08 15:24:16 +0900 (Fri, 08 Dec 2017) New Revision: 61078 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61078 Log: test_file_exhaustive.rb: fix arguments order Modified files: trunk/test/ruby/test_file_exhaustive.rb Index: test/ruby/test_file_exhaustive.rb =================================================================== --- test/ruby/test_file_exhaustive.rb (revision 61077) +++ test/ruby/test_file_exhaustive.rb (revision 61078) @@ -651,11 +651,11 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L651 return unless symlinkfile t = Time.local(2000) stat = File.lstat(symlinkfile) - assert_equal(File.utime(t, t, symlinkfile), 1) - assert_equal(File.stat(regular_file).atime, t) - assert_equal(File.stat(regular_file).mtime, t) - assert_equal(File.lstat(symlinkfile).atime, stat.atime) - assert_equal(File.lstat(symlinkfile).mtime, stat.mtime) + assert_equal(1, File.utime(t, t, symlinkfile)) + assert_equal(t, File.stat(regular_file).atime) + assert_equal(t, File.stat(regular_file).mtime) + assert_equal(stat.atime, File.lstat(symlinkfile).atime) + assert_equal(stat.mtime, File.lstat(symlinkfile).mtime) end def test_lutime -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/