String#succ! behaves differently from Ruby 1.8 which is also different from MRI
1.9
-----------------------------------------------------------------------------------
Key: JRUBY-1750
URL: http://jira.codehaus.org/browse/JRUBY-1750
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.x
Environment: Ruby 1.1b1 from the latest trunk.
Reporter: Vladimir Sizikov
Priority: Minor
Consider the following example:
{noformat}
puts "/[]ZZZ9999".succ!
{noformat}
Well, it turned out that all MRI 1.8.6, MRI 1.9 and JRuby behave differently!
And it's unclear what is the right behavior too. :)
Ruby 1.8.6:
"/[]AAAA0000" (Adds fourth A before brackets)
Ruby 1.9:
"/[]AAA0000" (No fourth A added anywhere)
JRuby:
"A/[]AAA0000" (Adds fourth A at the very beginning)
So, who's right and who's wrong here?
The succ method is one of those methods that only can bring big "HUH???" from
me :)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email