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
end

what do you think?
– henon

What’s the size of 1.2…3.4?

Regards,

Dan

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

What’s the size of 1.2…3.4?

5 ?

:wink:

-a

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