diff options
Diffstat (limited to 'test/ruby/test_m17n.rb')
| -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 ef2ebd8d5..db6f3b928 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 |
