~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to test/ruby/test_range.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum, Daigo Moriwaki, Lucas Nussbaum
  • Date: 2011-07-25 20:27:20 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20110725202720-9qfs7iam0ml7e1kc
Tags: 1.9.2.290-1
[ Daigo Moriwaki ]
* New upstream release.
* Removed debian/patches/110411_disable_osslv2.patch, which has been applied
  by the upstream.
* Added a patch: debian/patches/debian/patches/110716-bigdecimal,
  which was backported from the upstream (r30993)
  (CVE-2011-0188; Closes: 628450)

[ Lucas Nussbaum ]
* Build-depend on tcl-dev and tk-dev instead of {tcl,tk}8.4-dev.
* Update Lucas' email address.
* Add 110825-ossl-config.diff: backport changes to the OpenSSL
  extension to fix test failure.
* Add patch 110720_tcltk_disable_rpath.diff: disable rpath in tcltk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
    assert_nothing_raised("[ruby-dev:34558]") { (0..2).step(o) {|x| } }
183
183
  end
184
184
 
 
185
  def test_step_ruby_core_35753
 
186
    assert_equal(6, (1...6.3).step.to_a.size)
 
187
    assert_equal(5, (1.1...6).step.to_a.size)
 
188
    assert_equal(5, (1...6).step(1.1).to_a.size)
 
189
    assert_equal(3, (1.0...5.4).step(1.5).to_a.size)
 
190
    assert_equal(3, (1.0...5.5).step(1.5).to_a.size)
 
191
    assert_equal(4, (1.0...5.6).step(1.5).to_a.size)
 
192
  end
 
193
 
185
194
  def test_each
186
195
    a = []
187
196
    (0..10).each {|x| a << x }