summaryrefslogtreecommitdiff
path: root/test/ruby/test_symbol.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-29 03:00:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-29 03:00:50 +0000
commit205ae26727bba12b95f42143908a05155928a702 (patch)
treed00d90c13878df156b20afb4b00c56098457eaa1 /test/ruby/test_symbol.rb
parent8234c571a7758e19699542c68f194c0451059466 (diff)
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
Diffstat (limited to 'test/ruby/test_symbol.rb')
-rw-r--r--test/ruby/test_symbol.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb
index 39b2c7692a..279c23cdb8 100644
--- a/test/ruby/test_symbol.rb
+++ b/test/ruby/test_symbol.rb
@@ -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