diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-17 08:18:57 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-17 08:18:57 +0000 |
commit | 91596bb719416295e02513e6071fc83824cc81af (patch) | |
tree | d48d85b3a40222816dc1472d4d4c4aef9fe0fdb8 /test/ruby | |
parent | c80339d05f3eb4805849b7a95c0f6015f73127ff (diff) |
Use assert(false) for the path that is expected unreachable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_array.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 6f4999386f..8cf899cc56 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -735,7 +735,7 @@ class TestArray < Test::Unit::TestCase a = @cls[] i = 0 a.each { |e| - assert_equal(a[i], e) + assert(false, "Never get here") i += 1 } assert_equal(0, i) @@ -755,7 +755,7 @@ class TestArray < Test::Unit::TestCase a = @cls[] i = 0 a.each_index { |ind| - assert_equal(i, ind) + assert(false, "Never get here") i += 1 } assert_equal(0, i) |