summaryrefslogtreecommitdiff
path: root/test/ruby/test_m17n.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-05 16:39:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-05 16:39:38 +0000
commitda42c102c18156c2192df203cb2f79b88aa8092f (patch)
treef9d898bc07fb54817bb98979b41ee96664a3ca87 /test/ruby/test_m17n.rb
parent2435067f6ca2486570d3b90102b1a0ebe13cb1ea (diff)
* re.c (rb_reg_initialize_str): /\x80/n is not an error even if script
encoding is EUC-JP. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_m17n.rb')
-rw-r--r--test/ruby/test_m17n.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb
index 28db8377b9..daa8af7fc4 100644
--- a/test/ruby/test_m17n.rb
+++ b/test/ruby/test_m17n.rb
@@ -382,6 +382,8 @@ class TestM17N < Test::Unit::TestCase
assert_warning(%r{regexp match /.../n against to UTF-8 string}) {
assert_equal(nil, r =~ u("\xc2\xa1"))
}
+
+ assert_nothing_raised { eval(e("/\\x80/n")) }
end
def test_regexp_ascii