diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-26 11:19:06 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-26 11:19:06 +0000 |
commit | 4e6bba219ec6fc9806a499d6c97cf62a20916564 (patch) | |
tree | 86d0323c06316c8f4a26eb259288f3d142819e18 | |
parent | 8c02164fb53451dc7430b5948ef84e7722d490ee (diff) | |
download | ruby-4e6bba219ec6fc9806a499d6c97cf62a20916564.tar.gz |
add a test for [ruby-dev:33377].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_m17n.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index ef2ebd8d59..db6f3b928d 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -1017,4 +1017,11 @@ class TestM17N < Test::Unit::TestCase assert_equal(Encoding::US_ASCII.to_s.encoding, Encoding::US_ASCII) assert_equal(Encoding::US_ASCII.inspect.encoding, Encoding::US_ASCII) end + + def test_regexp_source + s = "\xa4\xa2".force_encoding("euc-jp") + r = Regexp.new(s) + t = r.source + assert_equal(s, t, "[ruby-dev:33377] Regexp.new(#{encdump s}).source") + end end |