mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_range.rb: remove invalid assertions
* test/ruby/test_range.rb: remove invalid assertions for [Bug #8739]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
647fc21a35
commit
5812f34dfe
1 changed files with 4 additions and 8 deletions
|
@ -256,14 +256,10 @@ class TestRange < Test::Unit::TestCase
|
|||
assert_equal("c", ("a".."c").last)
|
||||
assert_equal(0, (2..0).last)
|
||||
|
||||
bug8739 = '[ruby-dev:47587] [Bug #8739] from exclusive range'
|
||||
assert_equal([0, 1, 2], (0...10).first(3), bug8739)
|
||||
assert_equal([7, 8, 9], (0...10).last(3), bug8739)
|
||||
assert_equal(0, (0...10).first, bug8739)
|
||||
assert_equal(10, (0...10).last, bug8739)
|
||||
assert_equal("a", ("a"..."c").first, bug8739)
|
||||
assert_equal("c", ("a"..."c").last, bug8739)
|
||||
assert_equal(0, (2...0).last)
|
||||
assert_equal([0, 1, 2], (0...10).first(3))
|
||||
assert_equal([7, 8, 9], (0...10).last(3))
|
||||
assert_equal(0, (0...10).first)
|
||||
assert_equal("a", ("a"..."c").first)
|
||||
end
|
||||
|
||||
def test_to_s
|
||||
|
|
Loading…
Add table
Reference in a new issue