diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-05 19:34:15 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-05 19:34:15 +0000 |
commit | 98cbcf1bd7909306d2ba542aaff2eceb71ccb5c1 (patch) | |
tree | f11be1c581b236746c37c811bf9a858fa5491b3d /test/ruby/test_regexp.rb | |
parent | 579f16d9851fc220a1dda9a0d65e611cc37aeb14 (diff) |
* string.c (count_utf8_lead_bytes_with_ulong): fix shift size.
[ruby-dev:33993]
* string.c (str_utf8_nth) fix wrong counting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_regexp.rb')
-rw-r--r-- | test/ruby/test_regexp.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index 29783d4153..17fe9fa45f 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -123,6 +123,8 @@ class TestRegexp < Test::Unit::TestCase r = /./ m = r.match("a") assert_equal(r, m.regexp) + re = /foo/ + assert_equal(re, re.match("foo").regexp) end def test_source @@ -188,11 +190,6 @@ class TestRegexp < Test::Unit::TestCase assert_equal(/foo/, m.dup.regexp) end - def test_match_regexp - re = /foo/ - assert_equal(re, re.match("foo").regexp) - end - def test_match_size m = /(.)(.)(\d+)(\d)/.match("THX1138.") assert_equal(5, m.size) |