JRuby

Ruby String aset ([]=) with 3 args does not work is start index is one past string length

Details

  • Number of attachments :
    0

Description

Issue originally found in Rope unit tests (only error found in Rope 0.1).

This code snippet shows the problem:

s = "0"
s[1, 1] = "1"
p s

This should show s as "01" not throw Index out of bounds error.

Activity

Hide
Thomas E Enebo added a comment -

Fixed in commit 4906 on trunk and commit 4907 on 1.0 branch

Show
Thomas E Enebo added a comment - Fixed in commit 4906 on trunk and commit 4907 on 1.0 branch

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: