Re: Range#size


#1

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


#2

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

What’s the size of 1.2…3.4?

5 ?

:wink:

-a