mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use assert_equal instead of assert
* test/win32ole/test_win32ole_param.rb (test_input?, test_output, test_optional, test_retval?): use assert_equal instead of assert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ee2416e33c
commit
9749bab35e
1 changed files with 10 additions and 10 deletions
|
@ -66,25 +66,25 @@ if defined?(WIN32OLE_PARAM)
|
|||
end
|
||||
|
||||
def test_input?
|
||||
assert(@param_url.input?)
|
||||
assert(@param_cancel.input?)
|
||||
assert(!@param_pbs.input?)
|
||||
assert_equal(true, @param_url.input?)
|
||||
assert_equal(true, @param_cancel.input?)
|
||||
assert_equal(false, @param_pbs.input?)
|
||||
end
|
||||
|
||||
def test_output?
|
||||
assert(!@param_url.output?)
|
||||
assert(@param_cancel.output?)
|
||||
assert(@param_pbs.output?)
|
||||
assert_equal(false, @param_url.output?)
|
||||
assert_equal(true, @param_cancel.output?)
|
||||
assert_equal(true, @param_pbs.output?)
|
||||
end
|
||||
|
||||
def test_optional?
|
||||
assert(!@param_url.optional?)
|
||||
assert(@param_flags.optional?)
|
||||
assert_equal(false, @param_url.optional?)
|
||||
assert_equal(true, @param_flags.optional?)
|
||||
end
|
||||
|
||||
def test_retval?
|
||||
assert(!@param_url.retval?)
|
||||
assert(@param_p.retval?)
|
||||
assert_equal(false, @param_url.retval?)
|
||||
assert_equal(true, @param_p.retval?)
|
||||
end
|
||||
|
||||
def test_default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue