From 49b0ffdf2dffb2d6ad15b92a79393083d8acecdd Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 14 Feb 2008 06:01:05 +0000 Subject: 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 --- test/ruby/test_m17n.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ruby') 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}/ -- cgit