Re: Range#size

def test_range_size
assert_equal 1, (1…1).size
assert_equal 2, (1…2).size
assert_equal 3, (1…3).size
assert_equal 0, (1…1).size
assert_equal 1, (1…2).size

what do you think?
– henon

What’s the size of 1.2…3.4?



On Thu, 13 Apr 2006, Berger, Daniel wrote:

What’s the size of 1.2…3.4?

5 ?



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs