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 | 23db145b072570f010e5f4409585cc6ebab09bea (patch) | |
tree | ed9d655044ab1e8d27b5086f536ee8b25a29c11b /test | |
parent | bf8819235479e2772e317f5bc24ecad4046a56e7 (diff) |
add a test for named class in regexp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 5a542f7e12..fe85941ba6 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}/ |