mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0.beta2
Fixed ri parse defect with left-hand matched classes. https://github.com/rdoc/rdoc/pull/420 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bf51c067b9
commit
ba6ae341ba
37 changed files with 100 additions and 274 deletions
|
@ -8,8 +8,6 @@ class TestRDocMarkupParser < RDoc::TestCase
|
|||
def setup
|
||||
super
|
||||
|
||||
@have_byteslice = ''.respond_to? :byteslice
|
||||
|
||||
@RMP = @RM::Parser
|
||||
end
|
||||
|
||||
|
@ -30,11 +28,7 @@ class TestRDocMarkupParser < RDoc::TestCase
|
|||
|
||||
s.scan(/\S+/)
|
||||
|
||||
if @have_byteslice or @have_encoding then
|
||||
assert_equal 3, parser.char_pos(s.pos)
|
||||
else
|
||||
assert_equal 4, parser.char_pos(s.pos)
|
||||
end
|
||||
assert_equal 3, parser.char_pos(s.pos)
|
||||
end
|
||||
|
||||
def test_get
|
||||
|
@ -1360,8 +1354,6 @@ cat::
|
|||
end
|
||||
|
||||
def test_tokenize_note_utf_8
|
||||
skip 'Encoding not implemented' unless @have_encoding
|
||||
|
||||
str = <<-STR
|
||||
cät:: l1a
|
||||
l1b
|
||||
|
@ -1626,11 +1618,7 @@ Example heading:
|
|||
|
||||
s.scan(/\S+/)
|
||||
|
||||
if @have_encoding or @have_byteslice then
|
||||
assert_equal [3, 0], parser.token_pos(s.pos)
|
||||
else
|
||||
assert_equal [4, 0], parser.token_pos(s.pos)
|
||||
end
|
||||
assert_equal [3, 0], parser.token_pos(s.pos)
|
||||
end
|
||||
|
||||
# HACK move to Verbatim test case
|
||||
|
@ -1678,4 +1666,3 @@ some more text over here
|
|||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue