String#tr and String#tr_s fail on extended ascii characters
-----------------------------------------------------------

                 Key: JRUBY-1009
                 URL: http://jira.codehaus.org/browse/JRUBY-1009
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0RC2
         Environment: Windows XP, Java 1.6
            Reporter: Daniel Berger
            Priority: Minor


The following tests pass on MRI 1.8.6, but fail with JRuby 1.0.0RC2
{noformat}
class TC_String_Tr < Test::Unit::TestCase
   def setup
      @string = "\221\222\223\224\225"
   end

   def test_tr
      assert_equal("\220\222\223\224\225", @string.tr("\221", "\220"))
      assert_equal("\226\227\223\224\225", @string.tr("\221\222", "\226\227"))
   end

   def test_tr_s
      assert_equal("\220\222\223\224\225", @string.tr_s("\221", "\220"))
      assert_equal("\226\227\223\224\225", @string.tr_s("\221\222", "\226\227"))
   end

   def teardown
      @string = nil
   end
end
{noformat}

-- 
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

Reply via email to