mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_symbol.rb: switch to assert_not_equal
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8234c571a7
commit
205ae26727
1 changed files with 4 additions and 4 deletions
|
@ -503,11 +503,11 @@ class TestSymbol < Test::Unit::TestCase
|
|||
|
||||
def test_hash_nondeterministic
|
||||
ruby = EnvUtil.rubybin
|
||||
refute_equal `#{ruby} -e 'puts :foo.hash'`, `#{ruby} -e 'puts :foo.hash'`,
|
||||
'[ruby-core:80430] [Bug #13376]'
|
||||
assert_not_equal :foo.hash, `#{ruby} -e 'puts :foo.hash'`.to_i,
|
||||
'[ruby-core:80430] [Bug #13376]'
|
||||
|
||||
sym = "dynsym_#{Random.rand(10000)}_#{Time.now}"
|
||||
refute_equal `#{ruby} -e 'puts #{sym.inspect}.to_sym.hash'`,
|
||||
`#{ruby} -e 'puts #{sym.inspect}.to_sym.hash'`
|
||||
assert_not_equal sym.to_sym.hash,
|
||||
`#{ruby} -e 'puts #{sym.inspect}.to_sym.hash'`.to_i
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue