diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-09 07:19:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-09 07:19:31 +0000 |
commit | 209314c274f3bdf8b7167ca0f9482fbf08cc9af6 (patch) | |
tree | 3214b1b0f139b3b72cf85c556af9c9120ef4bddf /test | |
parent | 76a929a7fca3c84630574e4daa9dab7a96b04fc8 (diff) | |
download | ruby-209314c274f3bdf8b7167ca0f9482fbf08cc9af6.tar.gz |
test_io.rb: fix assertion
* test/ruby/test_io.rb (test_advise): fix inverted arguments order
by assert_nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index a3252d88b7..2f656d4c36 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2442,7 +2442,7 @@ End %w{normal random sequential willneed dontneed noreuse}.map(&:to_sym).each do |adv| [[0,0], [0, 20], [400, 2]].each do |offset, len| open(tf.path) do |t| - assert_equal(t.advise(adv, offset, len), nil) + assert_nil(t.advise(adv, offset, len)) assert_raise(ArgumentError, "superfluous arguments") do t.advise(adv, offset, len, offset) end |