mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
76a929a7fc
commit
209314c274
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue