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

* ext/strscan/strscan.c (Init_strscan): remove obsolete

matchedsize method, use matched_size instead.  [ruby-dev:38591]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2009-06-17 04:57:11 +00:00
parent 945ea61cd7
commit d121a3fb79
3 changed files with 6 additions and 14 deletions

View file

@ -528,9 +528,8 @@ class TestStringScanner < Test::Unit::TestCase
s.terminate
assert_nil s.matched_size
# obsolete
s = StringScanner.new('test string')
assert_nil s.matchedsize
assert_nil s.matched_size
s.scan(/test/)
assert_equal 4, s.matched_size
s.terminate