1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[Feature #18172] Fix duplicate test name

This commit is contained in:
Nobuyoshi Nakada 2021-09-17 08:38:29 +09:00
parent cbbda3e648
commit 475a4651b6
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -490,7 +490,7 @@ class TestRegexp < Test::Unit::TestCase
assert_equal("oge\u3042", m.match(:bar))
end
def test_match_matchsubstring
def test_match_match_length
m = /(.)(.)(\d+)(\d)(\w)?/.match("THX1138.")
assert_equal(6, m.match_length(0))
assert_equal(1, m.match_length(4))