diff options
-rw-r--r-- | test/ruby/test_symbol.rb | 8 |
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 |