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
@ -488,6 +488,11 @@ class TestM17N < Test::Unit::TestCase
|
|||||||
assert_equal(Encoding::ASCII_8BIT, r2.encoding)
|
assert_equal(Encoding::ASCII_8BIT, r2.encoding)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_regexp_named_class
|
||||||
|
assert_match(/[[:space:]]/u, "\u{00a0}")
|
||||||
|
assert_match(/[[:space:]]/, "\u{00a0}")
|
||||||
|
end
|
||||||
|
|
||||||
def test_regexp_embed_preprocess
|
def test_regexp_embed_preprocess
|
||||||
r1 = /\xa4\xa2/e
|
r1 = /\xa4\xa2/e
|
||||||
r2 = /#{r1}/
|
r2 = /#{r1}/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user