diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-08 02:49:11 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-08 02:49:11 +0000 |
| commit | 41b9ba49c60f1305cbf6344bc2949642a9a21f38 (patch) | |
| tree | 799d6e168abeaa5babf61a3e42ab5f0ab9b2094c /test/ruby | |
| parent | 221fd2fe7390b1df827bb03b299376519cdfd45e (diff) | |
| download | ruby-41b9ba49c60f1305cbf6344bc2949642a9a21f38.tar.gz ruby-41b9ba49c60f1305cbf6344bc2949642a9a21f38.tar.xz ruby-41b9ba49c60f1305cbf6344bc2949642a9a21f38.zip | |
* tool/enc-unicode.rb: parse range notation of UnicodeData.txt.
* enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt,
enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src:
follow above change. [ruby-dev:39444]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_regexp.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index cdbe277ba..1ad202652 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -745,6 +745,7 @@ class TestRegexp < Test::Unit::TestCase assert_match(/^\u3042{0}\p{Any}$/, "a") assert_match(/^\u3042{0}\p{Any}$/, "\u3041") assert_match(/^\u3042{0}\p{Any}$/, "\0") + assert_match(/^\p{Lo}{4}$/u, "\u3401\u4E01\u{20001}\u{2A701}") assert_no_match(/^\u3042{0}\p{Any}$/, "\0\0") assert_no_match(/^\u3042{0}\p{Any}$/, "") assert_raise(SyntaxError) { eval('/^\u3042{0}\p{' + "\u3042" + '}$/') } |
