mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
bf88192354
commit
23db145b07
1 changed files with 5 additions and 0 deletions
|
@ -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}/
|
||||
|
|
Loading…
Add table
Reference in a new issue