Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-368

character sequences (String.next()) don't work as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-10
    • None
    • None

    Description

      I rather expect String.next() to work similarly to that of Ruby or Perl.

      ie.
      assert ++"99" == "100"
      assert ++"Az" == "Ba"

      At present, ++"99" yields "901", and ++"Az" yields "Az". --"a" yields null.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            cpoirier Chris Poirier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: