diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-14 06:01:05 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-14 06:01:05 +0000 |
| commit | 49b0ffdf2dffb2d6ad15b92a79393083d8acecdd (patch) | |
| tree | ed9d655044ab1e8d27b5086f536ee8b25a29c11b /test/ruby | |
| parent | 5a17e4b3623a9ddfa8c258d516d7bc68930e8289 (diff) | |
| download | ruby-49b0ffdf2dffb2d6ad15b92a79393083d8acecdd.tar.gz ruby-49b0ffdf2dffb2d6ad15b92a79393083d8acecdd.tar.xz ruby-49b0ffdf2dffb2d6ad15b92a79393083d8acecdd.zip | |
add a test for named class in regexp.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_m17n.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index 5a542f7e1..fe85941ba 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -488,6 +488,11 @@ class TestM17N < Test::Unit::TestCase assert_equal(Encoding::ASCII_8BIT, r2.encoding) end + def test_regexp_named_class + assert_match(/[[:space:]]/u, "\u{00a0}") + assert_match(/[[:space:]]/, "\u{00a0}") + end + def test_regexp_embed_preprocess r1 = /\xa4\xa2/e r2 = /#{r1}/ |
